Arrow Function Expression
Arrow Function Expression
Arrow function expressions
- Arrow function don’t have their own bindings to
this,arguments, orsuper, and sould not be used asmethods. - Arrow function cannot be used as constructors. Calling them the
newthrows aTypeError. They also don’t have access to thenew.targetkeyword. - Arrow functions cannot use
yieldwithin their body and cannot be created as generator functions.
This post is licensed under CC BY 4.0 by the author.