Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Array Object join Method

Converts all elements of an array into a String object and joins them.

Syntax: JScript Array Object join Method

arrayobj.join(separator)

Arguments: JScript Array Object join Method

arrayobj

The name of an Array object.

separator

A String object that is used to separate one element of an array from the next in the resulting String object. If omitted, the array elements are separated with an empty string.

Remarks: JScript Array Object join Method

The join method returns a String object that contains each element converted to a string and concatenated together. An example using the join method follows:

var my_array = new Array("Jan 5", 1996, "hey", "my birthday!");

var my_string = my_array.join(", ");

After execution, my_string contains

"Jan 5, 1996, hey, my birthday!"

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.