Do you Know How Javascript Works??

Hemant prajapati
1 min readApr 25, 2023

--

Hey everyone I am here to resolve some of the queries regarding the javascript so let's start with some basic fundamental questions most of us don't know like.

Javascript
  1. How does javascript work?
  2. Is Javascript synchronous or asynchronous?
  3. Is javascript single-threaded or multi-threaded?

So I am here to answer the above question the first question is How does javascript work? so for this let me clarify one thing that you all know Everything happens in javascript inside Execution Context.

whenever the javascript code runs one Execution Context is created and the execution context has two things one is memory(which is a variable environment) and the second is code (Thered) so in the variable environment all the functions and variables are stored into key-value pairs.

Second, is the Thered of Execution where code runs one after another that mean is code is executed one line at a time so from here second and third question queries resolved by this Javascript is a synchronous single-threaded language.

--

--