Array.join() Method---concatenate the elements of an array
Navigator 3.0
array.join() array.join(separator)
An optional character or string used to separate one element of the array from the next in the returned string. If this argument is omitted, the empty string is used.
The string that results from converting each element of array to a string, and then concatenating them together, with the separator string between elements.
join() converts each of the elements of an array to a string, and then concatenates those strings, inserting the specified separator string between the elements. It returns the resulting string.
You can perform the opposite direction--split a string up into array elements--with the split() method of the String object.
file: /Techref/language/JAVA/SCRIPT/definitive/refp_10.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/11/19 21:17,
18.226.87.168:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/Techref/language/JAVA/SCRIPT/definitive/refp_10.htm"> [Chapter 21] Reference: Array.join()</A> |
Did you find what you needed? |