DEV Community

Dinesh Katariya
Dinesh Katariya

Posted on

1 1

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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up