JavaScript Hoisting
In JavaScript, hoisting is the behavior of moving declarations to the top of their scope. This means that variable and function declarations are processed before any code is executed, regardless of where the declaration is written in the code example code: output: hii Only global variable get hoisted. The let and const keywords were introduced …