/es-50

Primary LanguageJavaScript

Exercise 50

Given the following array:

const names = ["Luca", "Marco", "Vittorio", "Giovanni"];

  • Remove the element Giovanni.
  • Add a new element called Pippo at the end of the array.
  • Add the element Giovanni to the beginning of the array.

Suggestion

Look at the official documentation to find the right methods

es-50