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

Chapter 13. JavaScript Syntax > Semicolons, Colons, Commas, and Periods

Semicolons, Colons, Commas, and Periods

Let's move on to look at basic punctuation marks—semicolons, colons, commas and periods.

Semicolons ;

Semicolons have two uses. The first is an optional one, in separating commands within a code block from each other. (It is a requirement if two or more commands are on the same line.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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