Yugam Gangaryugamgangar.hashnode.dev·Jul 8, 2024Hoisting & Temporal Dead Zone in JavaScriptWe 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...tzd
Murali Singhmuralisingh.hashnode.dev·Apr 1, 2024Hoisting in JavaScriptHoisting is a special behavior of the JavaScript interpreter. Hoisting means that function and variable declarations are moved to the top of their containing scope. Variables Hoisting In JavaScript, variables are declared using let, const, and var. A...1 likeclass hoisting