0% found this document useful (0 votes)
12 views1 page

008 How-Code-Executes

The document discusses how code is executed inside a JavaScript engine, noting that JavaScript is single-threaded with one thing happening at a time, and that the stack controls the order of function calls while the heap stores allocated memory.

Uploaded by

test11111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

008 How-Code-Executes

The document discusses how code is executed inside a JavaScript engine, noting that JavaScript is single-threaded with one thing happening at a time, and that the stack controls the order of function calls while the heap stores allocated memory.

Uploaded by

test11111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

How Code Gets Executed

Inside the JavaScript Engine

“The thing that executes your code” The Stack controls


“which thing is
happening”
JavaScript is single-threaded: “One thing happens at a time”
Will become
important later
prompt() (Event Loop)
A
B getName()
Memory Execution
allocation D Context
greet()
Stores data in Manages your
C
your system program flow
(anonymous)
memory and (function calls
manages and
access to it Heap Stack communication)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy