A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Array/join below:

join · WebPlatform Docs

join Summary

Adds all the elements of an array separated by the specified separator string.

Syntax
join([ separator ])
separator
Optional. A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
Examples

The following example illustrates the use of the join method.

var a, b;
 a = new Array(0,1,2,3,4);
 b = a.join( "-" ) ;
 document.write(b);

 
 
Remarks

If any element of the array is undefined or null , it is treated as an empty string.

See also Specification

15.4.4.5 Array.prototype.join (separator) ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4