Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript function declaration vs arrow function

Regular functions created through function declarations / expressions are both constructible and callable. ... Arrow functions (and methods) are only callable i.e arrow functions can never be used as constructor functions. Hence, they can never be invoked with the new keyword.
 
PREVIOUS NEXT
Tagged: #javascript #function #declaration #arrow #function
ADD COMMENT
Topic
Name
6+2 =