DEV Community

Discussion on: Arrow Functions

Collapse
 
joelnet profile image
JavaScript Joel

It would be nice to have seen some examples demonstrating how arrow functions affect this

Collapse
 
polymorphicprod profile image
Josh Chernoff

Pulling from
developer.mozilla.org/en-US/docs/W...

You will see

Arrow function expression has a shorter syntax than a function expression and does not have its own this, arguments, super, or new.target. These function expressions are best suited for non-method functions, and they cannot be used as constructors.

note the non-method functions

heres some interesting thoughts on that point.
esdiscuss.org/topic/terminology-no...