Reverse the order of the elements in an array
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var words:Array = ["t", "r", "a", "j"];
words.reverse( );
trace(words); //j,a,r,t
}
}
}
Related examples in the same category