// the firstValue is a location in memory that // stores the value 10
var secondValue = 23; // the secondValue is another location in memory that stores the value 23
The second form of the comment you can use is the multiple line comment, which you define by using a forward slash followed by an asterisk (/*), and end using an asterisk followed by a forward slash (*/). All of the lines between those symbols are considered a comment, like the following:
/* Comments, Keywords, Identifiers, Case Sensitivity, White spaces and statements*/
Also, it can be written like this:
/* Comments, Keywords, Identifiers, Case Sensitivity, White spaces and statements */
To give another possible situation, say you wrote the script and after one year, while you are on vacation, your manager asked your co-programmer to modify this script. He will spend more hours than you to try to understand your code. So for you and for anyone else who might use your code, it's better to include comments in your scripts; that way, when you come back later you understand what's going on. You (or anyone else who needs to modify the code) can just read the scripts and comments and easily do what needs to be done.