Share on Google+Share on Google+
JavaScript Comment
Posted on: November 6, 2009 at 12:00 AM
JavaScript Comment:Comment is a important feature in any programming language, JavaScript supports two types of comments single line, and double line. In this tutorial you will come to know about this in detail. Examples will help you to understand.

JavaScript Comment:

Comments are placed within the programming language coding to hide all those statements, which are not supposed to run. Comment make the code more readable for the programmers.

Sometimes we need to hide some text in a program, at that situation we should put all those codes within comments. Line of Comments generally use for putting important information of variables, functions and other. This is useful when you are working in a group, and other team member may need to use your coding, it is also useful if you are working alone, comments keep you remembering about each details of the program.

Example 1:

<title>My Firt JavaScript File </title>
<script type="text/javascript" >
//This is single line comment
document.write("It is not comment");



It is not comment


Related Tags for JavaScript Comment:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 6, 2009

Recommend the tutorial

Advertisements Advertisements