# nested function

[JS](../../..) ⟩ [value](../..) ⟩ [function](..) ⟩ nested function

{% hint style="success" %}
a [..](.. "mention") is called "<mark style="color:purple;">**nested**</mark>" when it is created <mark style="color:yellow;">**inside**</mark> another function.
{% endhint %}

{% tabs %}
{% tab title="👥 相關" %}
* a [closure](../closure "mention") is usually a [nested](nested "mention").
{% endtab %}

{% tab title="📗 參考" %}
* [ ] JS.info ⟩ [Nested functions](https://javascript.info/closure#nested-functions)
{% endtab %}
{% endtabs %}
