Before getting to hoisting and TDZ let's have a look at a simple Example: var age = 30; function getName(){ console.log("Bruce Wayne"); } getName(); console.log(age); There's nothing new in this example just a variable (age) and a function (getName...

Markdown supported · ⌘↵ to post
No responses yet.