Array.prototype.toString

Returns a string representation of an array.

Syntax

toString()

Return value

A string.

Example

[1, 2, 3].toString()
"1,2,3"