JavaScript Hoisting: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= * https://developer.mozilla.org/en-US/docs/Glossary/Hoisting =Overview= Hoisting is a general way of thinking about how execution contexts (creation and execution...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://developer.mozilla.org/en-US/docs/Glossary/Hoisting | * https://developer.mozilla.org/en-US/docs/Glossary/Hoisting | ||
=Internal= | |||
* [[JavaScript Concepts]] | |||
=Overview= | =Overview= | ||
Line 6: | Line 9: | ||
Hoisting is a general way of thinking about how execution contexts (creation and execution phases) work in JavaScript. | 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. | 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 [[JavaScript_Classes#Class_Hoisting|not hoisted]]. |
Latest revision as of 22:54, 21 January 2020
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.