In short, hoisting is when JavaScript moves variable and function declarations to the top of their scope before any code is executed. Anyone who has some experience with JavaScript has surely seen the effects of hoisting even if by accident. In my case, I’ve learned to expect the outcome of hoisting without truly understanding it. In this guide, I will aim to cover JavaScript hoisting with example

