Using JavaScript Comments : Comments « Language Basics « JavaScript DHTML






Using JavaScript Comments

<html>
<head>
<title>Using JavaScript comments</title>
</head>
<body>
<script language="JavaScript">
<!-- Begin hiding JavaScript
// document.write("hello world!")
/* document.write("Hello world!")
document.write("Hello World!") */
document.write("HELLO WORLD!")
// End hiding Javascript -->
</script>
</body>
</html>

           
       








Related examples in the same category

1. Styles of JavaScript Comments
2.Using JavaScript Comment Tags