JavaScript Hoisting

From NovaOrdis Knowledge Base
Revision as of 22:54, 21 January 2020 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

Hoisting is a general way of thinking about how execution contexts (creation and execution phases) work in JavaScript.

Hoisting means that variables and function declarations are put into memory during the compile phase but stay where they were typed in the code. Classes are not hoisted.