how to comment out lines of code 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">
<!--
// This is a single line JavaScript comment
document.write("I have comments in my JavaScript code!");
//document.write("You can't see this!");
//-->
</script>