Hoisting & Temporal Dead Zone in JavaScript
We all might have heard of "hoisting" while working in JavaScript. But not everyone knows in depth about it. In this post let's dive deep into it.
var colour = "white";
console.log(colour); // white
Here it's a simple block of code where the vari...