Array.toString

Returns a string representing the specified array and its elements.
Method of Array

Syntax

toString()

Parameters

None.

Description

The Array object overrides the toString method of Object. For Array objects, the toString method joins the array and returns one string containing each array element separated by commas. For example, the following code creates an array and uses toString to convert the array to a string.

MetaScript calls the toString method automatically when an array is to be represented as a text value or when an array is referred to in a string concatenation.

See also

Array.toSource

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.