Comments are helpful when you have a large formula or when a reader might need explanations of what is being calculated. It's a good idea to add comments wherever the formula is not trivial.
-
To add a single line of comment, begin the comment with
// -
To add multiple lines of comment, start the comment with
/*and end the comment with*/
Example:
// This is a single-line comment.
/* This is a multi-line comment.
It can be useful for longer explanations. */