Variable global Scope Example
Explanation: Notice that the output of the variable a outside our function does not come out but the output of the variable a inside the function. Because the var keyword is not added to the variable inside the function, it is being considered as a global variable.
Now if we add the var keyword to the variable inside the function, then we can’t access the internal variable from outside if we want.
However, if you re-assign an Object or Array, it will display the following error.
1.Single Line Comments (Use a different comment mark for each line)
2.Multi Line Comments (You only need to use one comment mark for multiple lines at once.)
Explanation: Notice that the two lines that we have bound here in single line comment, those two lines will not come in our browser.
Explanation: Notice that all the lines we have bound here in the multi line comment will not come in our browser.