comment a part of code in js code example
Example 1: how to comment in javascript
/* this is a javascript comment
that is multi lines */
// This is a single line comment
Example 2: comment out in javascript
<script type="text/javascript">
<!--
document.write("I have multi-line comments!");
/*document.write("You can't see this!");
document.write("You can't see this!");
document.write("You can't see this!");
document.write("You can't see this!");
document.write("You can't see this!");
document.write("You can't see this!");
document.write("You can't see this!");*/
//-->
</script>