Comments : Comments are used as developer identification when ever any developer monitors he or she should understand. comments contains single line comment and multiple line comments as like as other languages.
Example for Single line comment
<html>
<body>
<script type="text/javascript">
//document.write("testing single line comment");
document.write("test success");
</script>
</body>
</html>
JavaScript Statement, Block and Comments
JavaScript can be stated as a statement or block, Statement which does not contains open braces and close braces .
Example for statement
Example for block
Comments : Comments are used as developer identification when ever any developer monitors he or she should understand. comments contains single line comment and multiple line comments as like as other languages.
Example for Single line comment
Example for multiple line comments