Comment Your JavaScript Code

Comment Your JavaScript Code

Comments are lines of code that JavaScript engine ignores. Those will not be executed it is only for explanation of the following code's logic.

There are two styles of writing comments

1. Single line of comment

Using // will tell JavaScript Engine to ignore the current line.

CODE

 

2. Multiple lines of comment

You can place multiple lines of your code within /* and */

CODE