Welcome to the Treehouse Community
Looking to learn something new?
What am I missing? Using the join method to combine a list in an array
I keep being prompted to insert a comma and a space ',' in the final string - and I did..... so what is it I'm missing?
var months = ['January','February','March','April','May','June','July','August','September','October','November','December']; var year= months.join(','); console.log(year);
Ryan FieldCourses Plus Student 21,241 Points
You need a comma AND a space:
var year= months.join(', ');
var year= months.join(',');