Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution. In this blog,...
In javascipt one can define variable using var let or const. Before the introduction of ES6, JavaScript only had var to define variables. The var is...