Skip to content

Glossary: JavaScript Beyond the Basics

Hoisting

Also written: hoisted

Function declarations (`function name() {}`) are moved to the top of their scope before the code runs, so you can call them above the line where they're written.

Where the book teaches it

Related terms

Temporal dead zonevar