Skip to content

Glossary: JavaScript Beyond the Basics

var

The old way to declare a variable. It ignores blocks, belongs to the whole function and is `undefined` before its line; never use it in new code.

Where the book teaches it

Related terms

ScopeClosure