What are the comments in Java Script?
Advertisements
प्रश्न
What are the comments in JavaScript?
टीपा लिहा
Advertisements
उत्तर
There are two types of comments, Single line and Multiple lines comments.
- Single-line comments begin with a double slash (//), causing the interpreter to ignore everything from that point to the end of the line.
- Multiple line comments begins with /* and ends with */.
For example:
// JavaScript single line comment .
/* Multiple line
comments */
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
