Arrow Function Notes After Watching ES6 For Everyone, Continued

Note post: this short post continued from my 1st Arrow Functions Post after trying out some more things with Arrow Functions with Dan Benson.

Arrow Functions can be even simpler (sometimes)! 💪 In the example below, the params () around arguments are not needed so there omitted as are the mustaches {} around the returned function.


const button = document.getElementById('button');
button.addEventListener('click', e => console.log(e, 'here'));

Here's a Codepen for fun purposes.