Learn all about JavaScript arrow functions. Learn how to use ES6 arrow syntax, and some of the common mistakes you need to be aware of when leveraging arrow functions in your code. You can store functions in variables, pass them to other functions as arguments, and return them from other function as values.

11m read timeFrom sitepoint.com
Post cover image
Table of contents
Arrow Function Syntax: Rewriting a Regular FunctionThe Parens-free SyntaxImplicit ReturnYou Can’t Name Arrow FunctionsHow Arrow Functions Handle the this KeywordJavaScript Arrow Functions Aren’t Always the Right Tool for the JobConclusion
1 Comment