/es-51

Primary LanguageJavaScript

Exercise 51

Given the following array:

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

Add a hyphen after each element of the array. The output should something like this: Luca-Marco-Vittorio-Giovanni

Suggestion Look at the official documentation to find the right method.

es-51