DEV Community

Discussion on: 10 Things 2020 has taught me

Collapse
 
md2perpe profile image
Per Persson

Why is it so common to write

const someFunction = (args) => {
  doSomething();
}
Enter fullscreen mode Exit fullscreen mode

instead of

function someFunction(args) {
  doSomething();
}
Enter fullscreen mode Exit fullscreen mode

I see no reason for this, but maybe there is.