Basics

Comment

JavaScript

 

Inline Comment

ECMAScript 5
// This is a comment

// This syntax can only have one line of text

Anything after // on the line is considered a comment and won't be executed.

 

Multiline Comment

ECMAScript 5
/*
    This is a multiline comment.
    You can have as many lines as you 
    want here.
*/

Anything between /* and */ is considered a comment and won't be executed.