DEV Community

Discussion on: What's your favorite addition to ES2015+

Collapse
 
maxwell_dev profile image
Max Antonucci

Arrow functions. I love the clean, simple syntax for managing functions. We can go from this:

const add = function(a, b) {
  return a + b;
}

To just this:

const add = (a, b) => a + b;

There are learning and readability curves here, but it's not bad and I think well worth it.

Collapse
 
laurieontech profile image
Laurie

Always a solid choice!