contents   index   previous   next



Array toString()

syntax:

array.toString()

return:

string - string representation of an Array object.

 

description:

This method behaves exactly the same as if Array join() was called on the current object with no arguments. The result is a string consisting of the string representation of the array elements (except for null and undefined, which are empty strings) separated by commas.

 

see:

Array join()

 

example:

// The following code:

 

var array = new Array( 1, "two", , null, false );

Screen.writeln( array.toString() );

 

// Will print out the string "1,two,,,false".

// Note that this method is rarely called,

// rather the function ToString() is used,

// which implicitly calls this method.

 


Array unshift()