Comments are sections of code that won’t be evaluated by the compiler and won’t be executed. Just like in C, Java, JavaScript, and similar languages, comments are created in two ways:
For example:
| // this is a comment |
| int a = 3; // this is also a comment |
| /* this is also |
| a long, long |
| comment */ |
where int a = 3; is regular code (not a comment) and will be evaluated by the compiler and executed.