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.

πŸ‘‹

Welcome to Tina!

Let's get a form set up
so you can start editing.

πŸ“– Form Setup Guide