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.