Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

Chapter 8. Datatypes and Type Checking > Default Variable Values

8.8. Default Variable Values

When a variable is declared without a type annotation and without an initial value, then its initial value is automatically set to the value undefined (the sole value of the datatype void). When a variable is declared with a type annotation but no initial value, then its initial value is automatically set to a default value for its specified datatype.

Table 8-6 lists the default values, by datatype, for variables in ActionScript.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint