Hoisting Explained
Javascript executes in two phases: Creation Phase: In this phase, JS allocates space in memory for all the variables, constants, functions, etc. This phase actually creates the execution contexts. Execution phase: In this phase, all the assignments...
Jul 21, 20252 min read2