# JavaScript Overview – Comments

There are two styles of denoting comments in JavaScript: two forward slashes (//) at the end of a line denote comments, and any characters within /* and */ are also treated as comments (/* JavaScript comments */).

The following illustrates the two styles of denoting comments:

    /* JavaScript comments */
    var x; // Look like Java, C# and
    	 // C++ comments
    /*
    * And they can occupy
    * multiple lines.
    */

Tip:

Use the (Comment Out Selected Lines) and (Uncomment Selected Lines) buttons to quickly comment out or uncomment line(s) in your script, as shown below. You can also remove comments through minification.