Advertisements
Advertisements
प्रश्न
What are the comments in JavaScript?
टिप्पणी लिखिए
उत्तर
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
Comments in Javascript
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?