Showing posts with label search java script. Show all posts
Showing posts with label search java script. Show all posts
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>