Local and Global Variables

This Local and Global Variables video also includes:

Without getting into the nitty gritty of variable lifetimes, this video explains the difference between local and global variables in JavaScript programming. Using a small coding example with a function defined, the author shows how there exists a range of code where you have access to local variables and how that differs from variables defined globally.    

3 Views 1 Download
Pros

  • Provides a nice explanation about an important concept in programming, the scope of a variable 
Cons

  • None