JavaScript Comments
Posted by Raj
In this article,I will explain how to use Comments in JavaScript.
Single line comments:
Single line comments start with //.
<script type="text/javascript">
// variable TIME
var time;
</script>
Multi line comments :
Multi line comments start with /* and end with */.
<script type="text/javascript">
/*
The code below will write
two paragraphs
*/
document.write("<p>paragraph1.</p>");
document.write("<p>paragraph2.</p>");
var time;
</script>
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
comment in javascript,
java script tool,
JAVASCRIPT,
javascript comment,
search java script
.You can leave a response, or trackback from your own site.