• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 1. What's New in AS2 > General Changes

General Changes

  • All variable and keywords are case sensitive.

  • If an undefined variable is used as a number, its default value is NaN (Not a Number). For example, with trace(myNumber + 1);, myNumber used to be 0; now it's NaN.

  • If an undefined variable is used as a string, its default value is “undefined.” It used to be an empty string ("").

  • As long as strings aren't empty, they have a Boolean value of true.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint