Curated and Reviewed by
Lesson Planet
This Local and Global Variables instructional 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
2 Downloads
Additional Tags
Pros
- Provides a nice explanation about an important concept in programming, the scope of a variable
Cons
- None