Tuesday, January 15, 2013

Semicolons

The semicolon character (;) can be used to terminate a statement. Alternatively, you can omit the semicolon character and the compiler will assume that each line of code represents a single statement. Because many programmers are accustomed to using the semicolon to denote the end of a statement, your code may be easier to read if you consistently use semicolons to terminate your statements.
Using a semicolon to terminate a statement allows you to place more than one statement on a single line, but this may make your code more difficult to read.
Programming Actionscript 3. Powered by Blogger.