Causes comments to be ignored by the JScript parser.
|
|---|
Single-line Comment:
// comment |
|
|---|
Multiline Comment:
/*
comment
*/ The comment argument is the text of any comment you want to include in your script.
|
Remarks
Example
The following example illustrates the most common uses of the comment statement.
| | Copy Code |
|---|
function myfunction(arg1, arg2){
/* This is a multiline comment that
can span as many lines as necessary. */
var r;
// This is a single line comment.
r = arg1 + arg2; // Sum the two arguments.
return(r);
} |
Requirements