It's like eating one cake at a time , but whenever you get another cake , you leave the first one and eat the new one till it's finished then go back again to the previous cake . Similarly execution context works in a way where it executes current function then if there is a function call inside it , it pauses this execution execution context and start the new one with the new function and so on
It's like eating one cake at a time , but whenever you get another cake , you leave the first one and eat the new one till it's finished then go back again to the previous cake . Similarly execution context works in a way where it executes current function then if there is a function call inside it , it pauses this execution execution context and start the new one with the new function and so on
Isn't that callstack ?