December 2013
Intermediate to advanced
384 pages
9h 54m
English
var weekdays= ["Mon", "Tue", "Wed", "thur", "Fri"] var weekStr = weekdays.join("\t"); // weekStr = "Mon\tTue\tWed\tthur\tFri"
The .join(separator) method allows you to combine an array into a string. The optional separator argument specifies the character or string to place between each item in the newly created string.
Read now
Unlock full access