DEV Community

Discussion on: Introduction to JavaScript Arrow Functions

Collapse
 
jmergenthal profile image
Jurian Mergenthal • Edited

Good sum up, thank you :)

I would have loved to also read about arrow functions being used as class methods:

class A {
   methodA = () => {
      // do stuff...
   }

   methodB() {
      // do other stuff...
   }
}

More specifically, i think it's valuable to know, that there are differences in comparison to arrow functions outside of classes.