How do we use multi-line comments in JavaScript?

JavascriptWeb DevelopmentFront End Technology

The following is a multi line comment in JavaScript.

/*
   * This is a multiline comment in JavaScript
   * It is very similar to comments in C Programming
*/

Example

The following example shows how to use multi-line comments in JavaScript.

<script>
   <!--
      /*
         * This is a multiline comment in JavaScript
         * It is very similar to comments in C Programming
      */
   //-->
</script>
raja
Published on 09-Jan-2018 09:36:51
Advertisements