---
description: 🚧 施工中
---

# function name

[JS](../..) ⟩ [value](..) ⟩ [function]() ⟩ <mark style="color:purple;">**function name**</mark>

{% hint style="success" %}
(an [id](../../grammar/token/id "mention")) the <mark style="color:yellow;">**name**</mark> of a [](<> "mention").
{% endhint %}

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="warning" %}
* the <mark style="color:purple;">**function name**</mark> of a [declare](declare "mention") is in its <mark style="color:yellow;">**enclosing**</mark> [function](../../scope/function "mention") / [module](../../scope/module "mention") / [global](../../scope/global "mention").
* a [](<> "mention") <mark style="color:red;">**doesn't**</mark>**&#x20;**<mark style="color:yellow;">**have**</mark> an (<mark style="color:yellow;">**outer**</mark>) [block](../../grammar/statement/other/block/block "mention"):exclamation:\
  :point\_right: [function-in-block-fib](declare/function-in-block-fib "mention")
{% endhint %}
{% endtab %}

{% tab title="🔴 主題" %}
* <mark style="color:yellow;">**topics about function name**</mark>
  * [implied](../../scope/implied "mention")
  * [anonymous-function](name/anonymous-function "mention")
* <mark style="color:yellow;">**tools**</mark>
  * [functionname](../../../appendix/custom/custom-functions/functionname "mention")
{% endtab %}

{% tab title="📘 手冊" %}
* [Function.prototype.name](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name)
* [SyntaxError: function statement requires a name](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Unnamed_function_statement)
{% endtab %}
{% endtabs %}
