JavaScript card revieweasy
What is hoisting in JavaScript?
Hoisting is JavaScript's behavior of moving variable and function declarations to the top of their scope during the compilation phase. Variables declared with var are hoisted and initialized with undefined, while let and const are hoisted but remain in the Temporal Dead Zone until their declaration is reached.