JavaScript Comments

There are two types of JavaScript comments: the multiline and the single line comment. The multiline is just like the CSS comment. The single is just two slashes "//" at the beginning and continues until the end of the line (it isn't closed).

Examples:

/* Need to fix this later*/

//Bob

/*1
Free Chili Day*/

Incorrect examples

// I am wrong, the second is unnecessary but probably won't hurt //

/* I am really bad: I'll eat until the end of javascript or until I find a matching closing comment
String Concatenation

Back to Knowledge Dump