30
What is the JS Execution Context?
Everything in JS happens within an execution context. Imagine a big box with two sides or look at the diagram below. The left side is the memory component(variable environment) while the right side is the code component(thread of execution).
The memory component(variable environment) is where all the variables and functions are stored in key value pairs even before code is executed.
The code component(thread of execution) is where all JS code is executed one line at a time.
Yes.
Single-threaded means that JS can only execute one thing at a time.
Synchronous signifies the order in which JS executes code. JS can execute the next line of code only if the current line of code has been executed.
30