Arrow Functions in JavaScript: A Simpler Way to Write Functions
When you start learning JavaScript, you learn functions like this:
function add(a, b) {
return a + b;
}
Clear. Traditional. Reliable.
Then one day you see something like this:
const add = (a, b) =>
arrow-fn-javascript.hashnode.dev5 min read