DEV Community

Discussion on: JavaScript’s Arrow Functions Explained By Going Down A Slide

Collapse
 
misterbrash profile image
MisterBrash

Maybe I read it too fast or I'm too tired but I don't see where you explain why there's no return keyword in your first arrow function example...

Collapse
 
dirkkiesewetter profile image
Dirk Kiesewetter

Arrow functions can have implicit returns: dev.to/samanthaming/es6-arrow-func...

Collapse
 
misterbrash profile image
MisterBrash

Many thanks to both of you. Great article.

Collapse
 
kbk0125 profile image
Kevin Kononenko

Hey, Dirk is correct with his comment about implicit returns. But, for the sake of clarity, I added another code block showing the same function using the return keyword!