pop() is the antithesis of push( ) : Pop : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Pop »

 

pop() is the antithesis of push( )


 

pop() decrements the array's length by and returns the value of the element it removed.


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){


        var numbers:Array = [565758];
        trace(numbers.pop(  ));  //58
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Array
» Pop