JavaScript: Array.prototype.join

By Xah Lee. Date: . Last updated: .
arrayX.join()
Join array elements to string, using comma ",".
arrayX.join(seperator_string)
Use seperator_string between elements.
console.log( [3,4,5].join() === "3,4,5" ); // true
console.log( [3,4,5].join( "-" ) === "3-4-5" ); // true
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Array

prototype