ES6 Arrow function

JavaScript: How ES6 Arrow Function Can Help You

An Arrow function is a compact alternative to a traditional function expression, but is limited and can't be used in all situations. Syntax: //One param. With simple expression return is not needed: param => expression //Multiple params require parentheses. With simple expression return is not needed: (param1, paramN) => expression[...]

By |February 25, 2021|Tags: |
Go to Top