JavaScript Comments - 0 views
-
Comments can be added to explain the JavaScript, or to make the code more readable. Single line comments start with //.
-
Multi line comments start with /* and end with */.
-
In the following example the comment is used to prevent the execution of a single code line (can be suitable for debugging): Example <script type="text/javascript"> //document.write("<h1>This is a heading</h1>");
- ...2 more annotations...