Learn what the local variable challenge is for this chapter.
- [Instructor] So like we've done in the previous chapter,…let's challenge you to code an example…of a local variable.…So here's the challenge.…Define a function that console logs…both a local and a global variable.…But instead of working with strings,…this time multiply two numbers…which a number of warriors in an army.…And in your code, test that the local variables…are indeed not available globally.…So good luck and I'll see you next.…
- What is variable scope?
- What are closures?
- Global vs. local variables
- Block-scoped variables
Skill Level Intermediate
1. Introduction to Variable Scope
2. Global Variables
What are global variables?5m 11s
3. Local Variables
4. Block-Scoped Variables
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.