Comments in JavaScript

Here's how you use comments in JavaScript. First, an example of a single line comment:

// Boo! I'm a comment.

And here's an example for a multi-line comment:

/* And I'm
a comment on
multiple lines */
  Tweet It
✖ Clear

🕵 Search Results

🔎 Searching...