Multiline Comment : JavaScript
How to Write Multiline Comment in JavaScript ?
- Multiple Line Comment Starts with ‘/*‘ Symbol.
- Multiple Line Comment Ends with ‘*/‘ Symbol.
- 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
