If needed to add some explanation sentence to the code we can use a single line comment. For this used two forward slashes that are placed at the beginning of a line of text.
1 //an explanation sentence
Example:
A single line comment can also be used inside a block of code. This is called nesting.
Example:
We can use also multiple single line comments between several lines of code.
Example:
To represent as a comment a group of text similar to a paragraph we can use a Multi-line comment. It should begins and ends with a forward slash and an asterisk. Multi-line comments can be placed before code and also can be nested inside of a code block.
Example:
Single line comments can be nested inside of multi-line comments. However, multi-line comments cannot be nested inside of other multi-line comments.
Example: