Comments

Comments are areas of code that are not executed.

They may be used to descibe code for readability or ignore code for testing purposes.

Single line comments start with //.

Multiple line comments start with /* and end with */.

Syntax

// single line comment

/* multiple
   line
   comment */

Example | Single line

Example | Multiple line

External

Mozilla Developer Network