JavaScript

JavaScript is a synchronous single-threaded language.

Introduction to how JS works behind the scenes

Do you know how JavaScript works and how the code is executed?

Execution Context in JS

"Everyting in JavaScript happens inside an Execution Context.

JavaScript is not possible without this beautiful execution context.

What happens when you run JavaScript Code?

Do you know? When you run a JavaScript program, behind the scenes, the JavaScript engine creates an execution context where whole JavaScript code is executed.

You can assume this execution context to be a big box or a container in which JavaScript code is executed.

The execution context has two components in it.

The memory component is also referred to as the first component. The place where all the variables and functions are stored in key-value pairs is here

This execution context's second component is the code component. This is where code is executed one line at a time.