JS: Comment
Line Comment
Comment start with 2 slashs //
to end of line.
Comment is ignored.
// this is line comment
3 + 4; // is 7
Block Comment
And any text between /*
and */
are ignored.
/* this is
multi-line
comment. */
3 + 4; /* is 7 */
Comment Cannot be Nested
/* comment cannot be nested /* error */ */