Skip to content

Glossary: JavaScript Basics

var

An older keyword for declaring variables, with confusing scoping rules. Modern code uses `const` or `let` instead.

Where the book teaches it

Related terms

constlet