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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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...
Arrow functions can have implicit returns: dev.to/samanthaming/es6-arrow-func...
Many thanks to both of you. Great article.
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!