javascript global variables inside function

 

 

 

 

In the first example, we show how the value of a local variable is hidden outside of our function: