Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
The function's name property can be used to identify the function in debugging tools or error messages. It has no semantic significance to the language itself.
Default-exported function declaration
An export default declaration exports the function as a declaration instead of an expression. If the declaration is anonymous, the name is "default".
Functions created with the Function() constructor have name "anonymous".
Functions in initializers (default values) of destructuring, default parameters, class fields, etc., will inherit the name of the bound identifier as their name.
Functions in initializers (default values) of destructuring, default parameters, class fields, etc., will inherit the name of the bound identifier as their name.
Functions in initializers (default values) of destructuring, default parameters, class fields, etc., will inherit the name of the bound identifier as their name.
Function.prototype.bind() produces a function whose name is "bound " plus the function name.
If a Symbol is used a function name and the symbol has a description, the method's name is the description in square brackets.
This page was last modified on Jul 10, 2025 by MDN contributors.