Wednesday, December 31, 2008

Javascript Statements and Comments

We will now discuss the basic fabrics of javascripts. We will explore the nuts and bolts syntax and structures in the next few chapters.Take a look at the following line below again
The line is called a javascript statement. It tells browser what to do. Statements are used in JavaScript to control its program flow. "Usually", there is a semicolon at the end of each executable statement. It is a good programming practise to add a semicolon at the end of the statement to make it more readable. The semicolon is, however, optional , and you may find examples without the semicolon at the end.
Reference Designer

No comments: