最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Is "Call stack" the same as "Execution context stack" in JavaScript? - Stack Overflow

programmeradmin1浏览0评论

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"?

Share Improve this question edited Mar 13, 2019 at 10:58 aMJay 2,2436 gold badges23 silver badges37 bronze badges asked Mar 13, 2019 at 10:50 BobBob 3693 silver badges10 bronze badges 1
  • "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
Add a ment  | 

1 Answer 1

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/

发布评论

评论列表(0)

  1. 暂无评论