a.toString()

Returns a string representation of an array

a.join()

Returns a string concatenation of the array elements. Pass a parameter to add a custom separator:

a.join(', ')

Go to the next lesson