Multiline Comment : JavaScript

How to Write Multiline Comment in JavaScript ?

  1. Multiple Line Comment Starts with ‘/*‘ Symbol.
  2. Multiple Line Comment Ends with ‘*/‘ Symbol.
  3. We can Write any number of lines in between these two start and end symbols.

Live Example :

/*
This JavaScript Code will Create one Object
and
We are going to set values to this JScript Object
*/

Complete Example :

<html>
<head>
<title>A Simple Page</title>
<script language="javascript">
/*
This JavaScript Code will Create one Object 
and 
We are going to set values to this JScript Object
*/
alert("Example Number 1");
</script>
</head>
<body>
</body>
</html>

Output :

Alert Box Will Gets Opened