DEV Community

Dinesh Katariya
Dinesh Katariya

Posted on

Javascript and it's execution context

"Everything in javascript happens inside execution context".

execution context has two part's
1) Variable environment (Memory)
2) Thread of execution (Code)

Memory: store key : value pair, ex : a = 29;
also store functions with their code ex: fn {...}

Code: is a part where the javascript code gets executed line by line. because javascript is "Synchronous single-threaded language"

Top comments (0)