Workshop: Using Comments
//this is a comment.
You can also begin a comment with two slashes in the middle of a line, which is useful for documenting a script. In this case, everything on the line after the slashes is treated as a comment and ignored by the browser. For example:
a = a + 1; // add one to the value of a
/*This script includes a variety of features, including this comment. */