...
The join()
operator takes a string as its sole argument. This argument is REQUIRED. Not passing in this argument will cause an empty string to be returned. The original array is joined into a single string with the argument placed between the array elements. If the argument is omitted, the default separator is ','. For example:
Code Block | ||||
---|---|---|---|---|
| ||||
a = ["A","B","C"]; c = a.join(";"); // c = "A;B;C" |
...