toString

convert the array to a String

 

let colors = ["red", "blue", "yellow"];
alert(colors.toString()); // return red,blue,yellow