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.
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 ratings0% 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.
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)