CARD 1
Introduction
Login to report note issues for this section.
Scope — Global, Local, Block
Scope determines where in the code a variable is accessible. If a variable is "in scope", you can read and write it. If it is "out of scope", accessing it throws a ReferenceError.
codejs
JavaScript has three types of scope: global, local (function), and block.