add comments in javascript code example

Example 1: comment in javascript

// single line comment 

/* multiline comemnt 
line 2
line 3
line 4 */

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>

Example 3: js comment

//This does not effect the code.
var something = "But this does effect the code!";