Javascript: arrow functions
Example:
let numbers = [1, 2, 3, 4, 5];
JavaScript arrow functions provide a shorthand syntax for writing functions.
Solution:
let squared = numbers.map(x => x * x);
Example: Solution:Javascript: arrow functions
JavaScript arrow functions provide a shorthand syntax for writing functions.
let numbers = [1, 2, 3, 4, 5];
let squared = numbers.map(x => x * x);