DEV Community

Cover image for Execution Context✨
Sudharshan S
Sudharshan S

Posted on

2

Execution Context✨

✏ In JavaScript, Execution Context is like a container. And it has
two components.
✏ They are, memory component or variable environment and code
component or thread of execution.
✏ In variable environment or memory component, it contains
variables, functions, and key-value pairs.
✏ But In thread of execution, it's a place where code is executed
at one line at a time. Because, JavaScript is a synchronous
single-threaded language i.e. JavaScript can only execute one
command at a time and in a specific order. It only go to the
next line once the current line has been finished execution.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

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

Okay