- Single Line Comments
- Multi-Line Comments
Single Line Comments
Single line comments start with //.
This example uses a single line comment at the end of each line to explain the code:
Multi-line comments start with /* and end with */.
This example uses a multi-line comment (a comment block) to explain the code: