Max
0
Q:

comment in js

// single line comment 

/* multiline comemnt 
line 2
line 3
line 4 */
18
//This is a javascript single line comment

/*
And here is a
multiline comment
*/
17
<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>

8
//This does not effect the code.
var something = "But this does effect the code!";
3
/* this is a javascript comment
that is multi lines */
// This is a single line comment
1
<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>

6
// comment sigle line
0

New to Communities?

Join the community