How JavaScript Works & Execution Context | Namaste JavaScript Ep.1 Notes. by samjs
every programming language has a unique way of executing the code, Here in javascript everything starts with the Execution context.
Execution context
The execution context can be split into two parts one is memory part another one is the execution part,
the memory part is also called as variable environment as it's stores all variables and functions as key:value pair
the execution part which executes all the code is also called as thread of execution
Javascript is a single threaded language.
speaking about thread of execution always remember that Javascript is a synchronous single threaded language,
understanding this will greatly help you on figuring out the Async in javascript,
which means it executes the code line by line, it can only execute only one task at a time.
Subscribe to my newsletter
Read articles from sam directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
sam
sam
im a developer who loves to code in javascript writes about javascript, frontend, React, Next.js