Hoisting Variables
This lesson goes over the JavaScript principle of hoisting in TypeScript.
Before moving on, let’s talk about the concept of hoisting. It is a quirk of JavaScript that brings all declarations made with var
to the top of the function (or into the global scope if declared outside a function).
Get hands-on with 1400+ tech skills courses.