DEV Community

Discussion on: Anonymous Functions vs Named Functions vs Arrow Functions

Collapse
 
blindfish3 profile image
Ben Calder

Arrow functions are more (and less) than just a shorthand to anonymous functions; which make then useful in particular cases. They preserve the context of this, which solves some really confusing scoping issues that previously required closures or bind(this).
There's some discussion of this in the MDN docs

Collapse
 
mathlete profile image
Analogy | Absence | Example

Great point, thanks!

Collapse
 
jyotirmoydeb1782 profile image
jyotirmoydeb1782

Very good answer