admin管理员组文章数量:1303451
I often see the "Call stack" in many articles. like this:
But can't find the "call stack" in the ECMAScript document.
Is "Call stack" the same as "Execution context stack"?
I often see the "Call stack" in many articles. like this: https://hackernoon./understanding-js-the-event-loop-959beae3ac40#ec22
But can't find the "call stack" in the ECMAScript document.
Is "Call stack" the same as "Execution context stack"?
- "But can't find [a term] in the ECMAScript document." - that doesn't mean anything. The specification often uses weird or custom terminology. It's not supposed to be a documentation for the JavaScript programmer. – Bergi Commented Mar 13, 2019 at 13:51
1 Answer
Reset to default 12Сall Stack and Execution Stack are different names for the same thing. It is a LIFO stack that is used to store execution contexts created during code execution.
Wikipedia says: "This kind of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack" https://en.wikipedia/wiki/Call_stack
One more quote: "In reality, the JavaScript engine creates what’s called an “Execution Stack” (also known as the “Call Stack”)." https://tylermcginnis./ultimate-guide-to-execution-contexts-hoisting-scopes-and-closures-in-javascript/
本文标签: Is quotCall stackquot the same as quotExecution context stackquot in JavaScriptStack Overflow
版权声明:本文标题:Is "Call stack" the same as "Execution context stack" in JavaScript? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741728533a2394735.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论