- It is started with double slash(
) and can be included either on a line by itself, or on a line following a statement. The interpreter considers as a comment everything that is between a double slash(
) and the end of the line.Multiple Line Comment
- It is indicated by a slash asterisk(
) and an asterisk slash(
). The interpreter considers as a comment everything that is between a (
) and (
) and allows to write comments on several lines.
// this is a single-line comment
this is a multiple line comment.
if you need to be more descriptive
or disable a large chunk of code