JavaScript Finder

Find what your looking for.

  • You are here: 
  • Javascript Comments

Welcome to JavaScript Finder

Javascript Comments
  • To create a single line comment you place two slashes // in front of your comment and the Javascript will ignore that line. All text to the right will be ignored, until the next line. This is good for a small comment in one line of code or writing small notes.

    JavaScript Format Example:

    <script language="JavaScript">
    <!--
    JavaScript Code In Here
    // programmer comments and notes can go here.
    -->
    </script>


Multi-line Comments
  • A single line comment is ok for small notes. But there's time when we will need to make large comments or notes. For this we will use Javascript's multi-line comment that begins with /* and ends with */.

    JavaScript Format Example:

    <script language="JavaScript">
    <!--
    JavaScript Code In Here
    /* comments and notes can go here.
    comments and notes can go here.
    comments and notes can go here.
    comments and notes can go here. */

    -->
    </script>

Javascript Comments

More Help