Learn JavaScript
Advanced Array Methods
31.13
Lesson

join()

The join() method creates a string by joining all the array elements.

It uses a separator string like a comma between all the different array elements.

join converts undefined, null or [] (empty array) into empty strings.