Instructional Video

Local and Global Variables, Computer Programming

Curated and Reviewed by Lesson Planet

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

3 Views 3 Downloads
Classroom Considerations
  • This video is hosted on YouTube
Pros
  • Provides an excellent explanation about an important concept in programming, the scope of a variable 
Cons
  • None