Increment (++) and Decrement ( -- ) : Arithmetic Operators : Language Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Language » Arithmetic Operators »

 

Increment (++) and Decrement ( -- )


 

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

        var x:Number = 5;
        x++; // 6
        trace(x);
        
        x--; // 5
        trace(x);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Arithmetic Operators