...

/

Exercise on Arrow Functions

Exercise on Arrow Functions

You will be writing and modifying function declarations using the arrow syntax.

Exercise 1:

Write an arrow function that returns the string 'Hello World!'.

Press + to interact
// Write your code here!

Exercise 2:

Write an arrow function that expects an array of integers, and returns the sum of the elements of the array. Use the built-in method ...