Hoisting Hoisting is a mental model, not a JS spec.variable declaration is done first, when the JS engine reads the code. So