JavaScript Variable Scope And Properties

Table of the JavaScript variable types detailing their scopes and properties.

 varletconst
Global scopeYesNoNo
Functional scopeYesYesYes
Block scopeNoYesYes
Can be changed?YesYesNo
Can be re-declared?YesNoNo
Can be hoisted?YesNoNo

Add new comment

The content of this field is kept private and will not be shown publicly.