Comments:
There are two types of comments in JavaScript…
- Single line comment
- Multi-line-comment
Single line comment :
Single line comment is denoted with two forward slashes (//). For example,
// comment text will be inserted here
// comment text will be inserted here
Multi-line-comment :
Multi-line-comment is denoted with /* */. As for example,
/* comment text will be inerted here */
Basically, multi-line-comment is used to comment on the Javascript codes. It prevents the block of code from running.
/* comment text will be inerted here */
Basically, multi-line-comment is used to comment on the Javascript codes. It prevents the block of code from running.
Post a Comment