Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
JavaScript
ecma11
Arrow Function Definitions

ECMAScript Language Specification, Version 11
14.2. Arrow Function Definitions

Read this Section of the Authoritative Specification

https://www.ecma-international.org/ecma-262/11.0/index.html#sec-method-definitions

4 Documented Misconceptions

Misconception
ArrowFunctionNoImpliedReturn
Even when an arrow function consists just of an expression, the return keyword must be explicitly written
Misconception
ArrowFunctionRequiresFunctionKeyword
Arrow functions also require the keyword 'function'
Misconception
FunctionsCannotBeImmediatelyInvoked
Functions cannot be called in the expression in which they are defined
Misconception
FunctionsMustBeNamed
Every function definition requires an associated name

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors