JavaScript/Variables/Exercises
Appearance
< JavaScript | Variables
Topic: Declaration and Initialization
- Be creative
- Explain to your colleague why programs need variables.
- Create a code snippet that defines a variable within a block scope. Access this variable within the block scope and outside of the block scope.
- Discuss with your colleague the advantages and disadvantages of using the global context.