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.

Syntax

// single line comment

/* multiple
   line
   comment */

Examples

Single line

Multiple line

Mozilla Developer Network

Home Menu