Variables

A variable is a named container for data held in memory. Every variable has a name, a value, the type of that value, and a scope that decides where the name is visible; modules extend scope across files with export and import. Declare variables with const by default and let when you must reassign; legacy code also uses var (Scope).

Subsections