Putting Comments in Scripts
Script 2.4 shows examples of two kinds of script comments. The first kind is for longer, multi-line comments. The second example shows how to do single-line comments.
Script 2.4. Here's how you can annotate your script with comments, which helps you and others understand your code.
Note that we haven't included the HTML for this example, as it is the same as Script 2.2. From now on in the book, when the HTML hasn't changed from a previous example, we won't be printing it again.
To comment your script: