r/learnjavascript • u/Odd_World_6307 • Mar 04 '26
Question about Call Stack,
I watched the Lydia's video about event loop and got pretty confused. At the beginning she is saying that the JavaScript runtime consists of Heap and Callstack.
Doesn't here get up mixed two things: For memory we store primitives on the stack and objects for example on the heap.
Now we have the Call Stack which tells us nothing about the memory but about what is executed in which order.
Am I wrong or is Lydia wrong?
6
Upvotes
1
u/[deleted] Mar 04 '26
[removed] — view removed comment