Core JavaScript 1.5 Guide:Comments
From MDC
[edit] Comments
Comments are author notations that explain what a script does. Comments are ignored by the interpreter. JavaScript supports Java and C++-style comments:
- Comments on a single line are preceded by a double-slash (//).
- Comments that span multiple lines are preceded by /* and followed by */:
Example
The following example shows two comments:
// This is a single-line comment. /* This is a multiple-line comment. It can be of any length, and you can put whatever you want here. */