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

Chapter 13. JavaScript Syntax > Comment Lines //, /* … */

Comment Lines //, /* … */

There are two kinds of comment markers in JavaScript. One is the single line comment //, which you see numerous times throughout this book. Whenever you encounter this character pair active in JavaScript, any characters following on that line (including semicolons and other comment markers) are considered characters that the JavaScript engine must ignore.

The other kind of comment markers, /* and */, define regions of text that the JavaScript engine must ignore. Anything between these two markers the engine ignores.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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