r/learnjavascript • u/Green_Ad_6086 • Aug 28 '26
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
32
Upvotes
View all comments
Show parent comment
2
u/Lithl Aug 28 '26
Not every programming language has a call stack. Most do, and the ones that don't usually either are very old (pre-1970) or are esoteric (like Brainfuck).
In languages without a call stack, you'll usually have the tools to jump wherever you want within the program, which makes implementing your own call stack a possibility.