Javascript Join() Function

The join() function of array object will joins/adds all elements of an array into a string. Resulting string used to separate one element of an array from other element of array. Use it for example to join all elements into one string.

Syntax

Javascript Join() Function Example1

This will produce following result

Javascript Join() Function Example2

This will produce following result