If you have been using JavaScript for a few years, you are probably familiar with this syntax:
function addTen(num){
return num + 10;
});
cons...
For further actions, you may consider blocking this person and/or reporting abuse
this is great, amusing and easy to understand!
I now see slides all over my code :)
love it
Thanks Gustavo :)
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!
This is really nice way of explaining it. However my OCD is killing me , I was expecting the parameters to be animated as they slide down to the landing pad. Still great post!
xD Same over here :P
It is very difficult for me to not make "wheeee" sound effects while reading this article.
Thank you.