JavaScript Array method: join()
[this page | pdf | back links]
The join() method (when applied to a JavaScript
array) joins
all elements of an array into a string.
It
has the following syntax with the following parameters. It returns a string
as above.
array.join(delimiter)
|
Parameter
|
Required / Optional
|
Description
|
|
delimiter
|
Optional
|
The delimiter (i.e.
separator) inserted between consecutive element strings. Default is a comma,
i.e. “,”
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Arrays