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...
pblogs.hashnode.dev2 min read