The undefined value represents the absence of data for variables, parameters, and return values without a specified type annotation. : undefined « Data Type « Flash / Flex / ActionScript






The undefined value represents the absence of data for variables, parameters, and return values without a specified type annotation.

 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var info = new Object( );
        info.city = "Toronto";
        info.country = undefined;
        trace(info.language);  // Displays: undefined


    }
  }
}

        








Related examples in the same category

1.Convert undefined to string