Comments
Comments can be used to document code. A comment is text that is not executed.
Single-line comments start with two slashes (//
). These comments can go on a line by themselves or they can go directly after a line of code.
Multi-line comments start with a slash and an asterisk (/*
) and end with an asterisk and a slash (*/
):
Comments may be nested.
Multi-line comments are balanced.
Last updated