Friday, 25 August 2017

Comments in JavaScript - W3Tricks

Comments in JavaScript


Syntax

<html>
<head>
<title></title>
<script language="javascript" type="text/javascript">
// Single line Comments.

/*multi
line
Comments.*/

<!-- Single line Comments. //-->
</script>
</head>

<body>
<h2>W3Tricks - JavaScript</h2>
</body>

</html>
  • // is use Single line Comments.
  • <!-- Single line Comments. //-->
  • /*multi
  •    line 
  • Comments.*/

0 comments:

Post a Comment