Type method
FormatObject array . Push (additional elements) array.push(element1, ..., elementN)
Commentary
Add an array element to the end. Adds one or more elements to the end of an array and returns the new length of the array.
Sample code - QC 2 JavaScript
myAry1 = new Array (12,34, "AB", "CD");
myAry1.push ( "XYZ");
outputs [0] = myAry1.toString ();
Sample code - QC 3 JavaScript
var myArrayB = new Array(12,34,"AB","CD");
var outputArray = new Array();
var n = myArrayB.push("XYZ");
function (__string outputArray) main ()
{
var result = new Object();
result.outputArray = myArrayB.toString();
return result;
}