Arrow Functions in JavaScript: A Simpler Way to Write Functions
The Problem: Functions Have a Lot of Boilerplate
Here's a simple function that doubles a number:
function double(n) {
return n * 2;
}
It works fine. But notice how much of that is just ceremony — f
chetan71.hashnode.dev8 min read