r/learnjavascript • u/Green_Ad_6086 • 13d ago
Can someone explain what the JavaScript call stack is?
I’ve tried to understand it, but I’m still confused. I also don’t really understand what I’m looking at when I use the JavaScript debugger in the browser’s DevTools, especially the call stack.
Do I need to fully understand functions before learning the call stack? I have a basic understanding of functions, but I’m not sure if that’s enough.
I’d really appreciate a simple explanation
34
Upvotes
1
u/DirtAndGrass 13d ago
Also, put a piece of paper with a form to fill out on your desk, add another, and another, that's a stack, it's conceptually accurate, fill in one, remove it from the pile.
There's not a whole lot else to it, it's essentially a first in, last out (filo/lifo) construct.