This exercise tests the scope of local variables and global variables both inside and outside of Javascript functions.
The exercise is divided into five logical scripts with similar code but small differences in where variables are placed to demonstrate the varied outcomes.
This random counter is programmed with three types of variables.
Each of the five scripts also calls the same two functions.
blog comments powered by Disqus