Hoisting Variables
This lesson goes over the JavaScript principle of hoisting in TypeScript.
We'll cover the following...
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 ...