JavaScript Get String da matriz com espaço entre
var showtimes = ["1pm", "2pm", "3pm"];
var showtimesAsString = showtimes.join(', '); // gives "1pm, 2pm, 3pm"
DeuxAlpha
var showtimes = ["1pm", "2pm", "3pm"];
var showtimesAsString = showtimes.join(', '); // gives "1pm, 2pm, 3pm"
const leaderboard = ['Harry', 'Luna', 'Hermoine', 'Draco'];
document.write(leaderboard.join(', '); // Harry, Luna, Hermoine, Draco