Submodule 5.2: Simple JavaScript file
Comments in Javascript
There are two ways to write comments in our JavaScript code.
The first way is to use // your comments
.
The above can be used to comment only one line of code. Everything that is between the two tags will be ignored by JavaScript.
The second way is to use /* your comments */
.
We use this when we want to comment multiple lines. Again, everything between the two tags is ignored by JavaScript.
For more information: https://www.w3schools.com/js/js_comments.asp