Arrays: Task 3


  1. Remove the lst item in the array.
  2. Add two new names to the end of the array.
  3. Go over each item in the array and add its index number after the name inside parentheses, for example Flipper (0).
    Hint, the forEach() method exectes a provide function once for each array element.
    Note, that when using forEach you are performing operations on a copy of the array elements, not the array elements themselves, so you can't change them directly, you have to create the new array item and copy it back over.
  4. Finally, join the array items together in a single string called myString, with a separator of " - ".