The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.

Array: join()

With join you join all elements of an array into a string:
var words = ['Sex', 'Drugs', 'Rock', 'Roll'];
var s1 = words.join();
var s2 = words.join(' & ');
var s3 = words.join(' and ');
Without an argument join joins the elements separated by commas. s1 has the value 'Sex,Drugs,Rock,Roll'. Otherwise, the passed argument specifies the separator. s2 has the value 'Sex & Drugs & Rock & Roll' and s3 has the value 'Sex and Drugs and Rock and Roll'.

Exercise

Write a function list that joins words in an array into a list. list(['Huey', 'Dewey', 'Louie']) should return 'Huey, Dewey and Louie'. The passed array contains at least two words.