Execution context is like a big box which has two component in it.
🔹 The first component is known as the Memory component.
🔹 The second component is known as the Code component.
Memory component: This is the place where all variables and functions are stored as key-value pairs. Memory component is also known as the Variable Environment.
Code component: This is the place where the whole code is executed one line at a time. This is also known as the Thread of execution.