Quartz Composer JavaScript Reference © Cybero Designs  

reverse

Type Method
FormatObject array.reverse();
Commentary
Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.
Sample code - QC 2 JavaScript
myAry1 = new Array (12,34, "AB", "CD");
n = myAry1.reverse ();
outputs [0] = n.toString ();
Sample code - QC 3 JavaScript
var myArrayB = new Array(12,34,"AB","CD");
var outputArray = new Array();
var n = myArrayB.reverse();
function (__string outputArray) main ()
{ var result = new Object();
result.outputArray = myArrayB.toString();
return result; }


Return to the Start Page