The Basics of Programming #15 Adding Comments
http://learn-share.net
Adding Comments to code.
You add comments in java_script in the same way has many c based languages.
The most simplest on doing this, is to write a line where begins with two forward slashes.
Anything after the two forward slashes, will be ignored.
So this is a single line comment.
As soon we leave this line, the rest will be processed as normal.
you can also put those two forward slashes after an existing line.
But is more common to put it before the code that they meant to be applied.
So if we want to split out some of this code here, we might say that this section is our boolean variables, and this was the numeric variable.
And its also good to put some blank line before the comment, because it just make it more visible.
And you can also comment into multi lines.
You could comment with double slashes on each line.
But we can also do, is to use a forward slash, and an asterisk.
And now, everything is a comment, until we get to, an asterisk, forward slash.
