Comments in JavaScript part 1
JavaScript Comments
Not all JavaScript statements are "executed".
Code after a double slash //, or between /* and */, is treated as a comment.
Comments are ignored, and are not executed.
Single line comments use double slashes.
Result:
It's a good idea to make a comment about the logic of large functions to make your code more readable for others.
How does the single line comment look like?
Comments
Post a Comment