Using the typeof Operator : typeof Operator « Statement « Flash / Flex / ActionScript






Using the typeof Operator

 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var myVariable:Number = 6;
        trace(typeof myVariable); // Displays: number


    }
  }
}

        








Related examples in the same category

1.Return Values for typeof Operations