3) It is weakly typed because it does not need to specify datatypes to declare variable (int, float, double etc) like c/c++.
4) It is not programming language. It Interpreted language because browsers are interpret it.
6) Semicolon(;) is optional
7) String can be enclosed by using single quote (‘) or double quote(“”)
8) // is used to specify single line comment and /* ... */ is used to specify multiline comment.
Cookie: 1. A cookie is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website. 2. When the user browses the same website in the future, the data stored in the cookie can be retrieved by the website to notify the website of the user's previous activity. 3. Cookies were designed to be a reliable mechanism for websites to remember the state of the website or activity the user had taken in the past
Alert(): The alert() function displays a message on the web page for the users. In this case the users need nothing to do except click to close to it.
prompt(): The prompt() function also displays a message/statements for the users but in this the users can also input data in the input box.