Adhoc Systems

In reply to https://seblog.nl/2019/08/13/1/arrow-functions
Zachary Dunn's avatar.

Zachary Dunn

@zack:mozilla.org

I like that they're shorter, using one style means I don't have to think about the differences between the two, and arrow functions emphasizes that functions are just variables.<br><br>Also, your two examples aren't exactly equivalent. The arrow functions has an implicit return, so it returns whatever stuff() returns. The function based function has no return value.

Comments

There aren't any comments on this post yet.