Adhoc Systems

In reply to
Zachary Dunn's avatar.

Zachary Dunn

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.


There aren't any comments on this post yet.

Back To Top