toString (Array - JavaScript)

Gets the string representation of an Array object.

Defined in

Array (Standard - JavaScript)

Syntax

toString() : string
Return value Description
string String representation of the array.

Examples

This computed field displays the string representation of an array.
var a = new Array("one", "two", "three", "four");
a.toString() // one,two,three,four