JavaScript

Variable

Definition

A named container that stores a value in memory. JavaScript uses `let`, `const`, and `var` to declare variables. `let` and `const` are block-scoped, while `var` is function-scoped.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms