Comments Comments are written as: // end-of-line comment /* block comment */ /** documentation comment */ Documentation comments appear immediately prior to class, function and variable declarations. Their contents are extracted by the docs command.