4 Replies Latest reply on Sep 3, 2007 7:22 AM by kglad

    Declare Variable Data Types

    Yue_Hong Level 1
      From my understanding, there is no need to declare variables data type like String, Number, Array for it to function. For example:

      var abc:String = "abcde";
      var abc:Number = 1234;
      var abc:Array = new Array();

      We can write it in easier way and it is still working.

      abc = "abcde";
      abc = 1234;
      abc = new Array();

      So, what is the purpose and benefit to declare the variable specific data type?