---
description: a stack used to track execution contexts.
---

# call stack

[JS](../..) ⟩ [concept](../../../browser/concepts) ⟩ [execution context]() ⟩ call stack

{% hint style="success" %}
A <mark style="color:yellow;">**stack**</mark> that is used to <mark style="color:yellow;">**track**</mark> [](<> "mention")(s).

📘 [js-spec](../../../master/ref/js-spec "mention") ⟩ 8.2 [Execution Contexts](https://262.ecma-international.org/6.0/#sec-execution-contexts)
{% endhint %}

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="success" %}
The [running-execution-context](running-execution-context "mention") is always at the <mark style="color:yellow;">**top**</mark> of the <mark style="color:purple;">**call stack**</mark>.
{% endhint %}
{% endtab %}

{% tab title="👥 相關" %}
* [](<> "mention")(s) are managed by <mark style="color:purple;">**call stack**</mark>.
* the <mark style="color:yellow;">**top**</mark> element of <mark style="color:purple;">**call stack**</mark> is called [running-execution-context](running-execution-context "mention").
{% endtab %}

{% tab title="📗 參考" %}
* [ ] Anil ⟩ [Scope, Lexical Environment and Scope Chain in JavaScript](https://medium.com/@anilakgunes/scope-lexical-environment-and-scope-chain-in-javascript-559aadb7dca8) ⭐️
{% endtab %}

{% tab title="📘 手冊" %}
* [ ] [js-spec](../../../master/ref/js-spec "mention") ⟩ 8.2 [Execution Contexts](https://262.ecma-international.org/6.0/#sec-execution-contexts)
{% endtab %}
{% endtabs %}
