myVariable *= 6; is the same as : Arithmetic Operators : Language Flash / Flex / ActionScript examples


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

 

myVariable *= 6; is the same as


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var myVariable:Number = 6;
        
        myVariable *= 6;
        trace(myVariable);
        
        myVariable = myVariable * 6;
        
        trace(myVariable);
        
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Arithmetic Operators