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
new
throws aTypeError
. They also don’t have access to thenew.target
keyword. - Arrow functions cannot use
yield
within their body and cannot be created as generator functions.
This post is licensed under CC BY 4.0 by the author.