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

Chapter 15. Lexical Structure > Statement Terminators (Semicolons)

15.2. Statement Terminators (Semicolons)

As we saw in Chapter 6, the semicolon terminates an ActionScript statement. Though by convention you should always end your statements with semicolons, they are not strictly required in ActionScript. If the semicolon is omitted, the interpreter attempts to infer the end of a statement. For example:

// These are preferred
var x = 4;
var y = 5;
// But these are also legal
var x = 4
var y = 5


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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