Microsoft® JScript™
Comment Statements
Language Reference |
Version 1 |


Description

Causes comments to be ignored by the JScript parser.

Syntax 1
Single-line Comment:
// comment
Syntax 2
Multiline Comment:
/*
comment
*/

The comment argument is the text of any comment you want to include in your script.

Remarks
Use comments to keep parts of a script from being read by the JScript parser. You can use comments to include explanatory remarks in a program.

If Syntax 1 is used, the parser ignores any text between the comment marker and the end of the line. If Syntax 2 is used, it ignores any text between the beginning and end markers.


© 1997 Microsoft Corporation. All rights reserved.