Arrow function expressions
Sep 14, 2021
Arrow function expressions
An arrow function expression is a compact alternative to a traditional function expression, but is limited and can’t be used in all situations.
Differences & Limitations:
- Does not have its own bindings to
this
orsuper
, and should not be used asmethods
. - Does not have
new.target
keyword. - Not suitable for
call
,apply
andbind
methods, which generally rely on establishing a scope. - Can not be used as constructors.
- Can not use
yield
, within its body.