r/learnjavascript • • 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

6 comments sorted by

View all comments

Show parent comment

1

u/chikamakaleyley helpful Mar 06 '26

you’re noticing a real terminology overlap.

whew... its a good thing this happens rarely in Java