DEV Community

Cover image for Summarizing Namaste
πŸ™ JavaScript EP01 (Execution Context)
Abhinav Singh Jamwal
Abhinav Singh Jamwal

Posted on

Summarizing Namaste πŸ™ JavaScript EP01 (Execution Context)

Thank you Akshay Saini for this beautiful series. Just summarizing your lessons for whenever I need a quick recap. Same for others. Hope it helps.

"Everything in Js happens inside an Execution Context"

What is an execution context ??

We can say execution context is like a container in which whole Js runs.

Execution context consists of two parts:

1->Memory or Variable environment
2->Code or Thread of execution

Js is not possible without execution context.

image

In first part, all the variables and functions are stored here as key value pair. When I say functions it means whole function code is assigned as a value.

In second part, all the Js code is executed line by line.

Js is a synchronous single threaded language.

To understand this, single thread means Js can execute one command at a time.
So, synchronous single threaded means it will execute code one at a time and cannot move forward(next line of code) without finishing previous one.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay