DEV Community

Aditya Rawas
Aditya Rawas

Posted on

1

Explain me execution context in JavaScript like I'm 6

Top comments (4)

Collapse
 
h0sny profile image
Hosnyy • Edited

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

Collapse
 
rawas_aditya profile image
Aditya Rawas

Isn't that callstack ?

Collapse
 
omkarjawaji profile image
omkarjawaji • Edited

youtu.be/ZvbzSrg0afE

This video will make you understand it for sure.
And video series will clear a lot of JavaScript fundamental concepts , he teaches very patiently and cleary.

Collapse
 
rawas_aditya profile image
Aditya Rawas

Thanks for sharing

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay