Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 600 Bytes

HOISTING.md

File metadata and controls

8 lines (6 loc) · 600 Bytes
title excerpt
Hoisting
an action performed by the JavaScript interpreter that moves function and variable declarations to the top of their containing scope

Hoisting

“Hoisting” is an action performed by the JavaScript interpreter that moves function declarations of the form function foo() {}, and variable declarations of the form var foo; to the top of their containing scope. During this process, only the actual declarations are moved; any value assignments are left in the place where they were written.