JavaScript for Beginners - JavaScript Comments (P: IV)
Not all JavaScript statements are
“executed”.
Code after a double slash //, or between /*
and */, is treated as a comment. Comment are ignored, and are not executed.
Single Line comments use double slashes
Result:
Everything you write between /* and */ will
be considered as a multi-line comment
Here is an example
Note: comments are used to describe and explain what the code
is doing
Next Post: JavaScript for Beginners - Variables (P:V)
An excellent blog for a absolute beginner. Thank. Keep it up. Roshan Ruvendra
ReplyDelete