Comments are annotations in the source code of a program that are ignored by compilers or interpreters, and therefore have no effect on the actual output of the code. Usually, comments are used to add information about the code, warnings or suggestions so that end user can easily interpret the code. They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters.
- Single-line Comment
- Multi-line Comment
Multi-line Comment or Block Comment is represented by forward slash with asterisk ( /*) then asterisk with forward slash(*/).