Array ride 10


const numbers = [0, 1, 2, 3, 4, 5];
const words = ['Pizza', 'Cheesy Cannelloni', 'Osso buco'];
  1. Use the method reduce() to calculate the sum of all values contained in the array numbers array. Assign the result to a new variable sum.
  2. Use the method reduce() to find the longest word in the array words. Assign the result to a new variable longest.