Clean code practices with JavaScript
atyantik.com
Clean code practices with JavaScript
1–3 of 3 posts
Re: Clean code practices with JavaScript
#2> Arrow functions are more compact and have shorter syntax than function expression, and it utilises =>, that looks like a fat arrow.
It's probably worth noting that the arrow syntax isn't just shorthand, it also maintains `this` from the outer scope. (or rather, doesn't define its own)
MDN has an excellent write up on the nuances: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re: Clean code practices with JavaScript
#3Any improvement suggestions are welcome