Welcome to the Treehouse Community
Looking to learn something new?
Combining arrays into a single string.
Finish the code by adding the array method that combines all of the items in an array into a single string.
var students = ["Sally", "Joan", "Raphael", "Sam"]; var message = "Hello " + students.?(", ");
Steven Parker216,083 Points
The join() method joins all elements of an array (or an array-like object) into a string and returns this string.
You will find a list of array methods on the left side of the MDN Array page. They are all links, so click on any method name to go to the page for that method. Also you can just hover the cursor over a method to get a description tooltip.