Qusजावास्क्रिप्ट में कमेंट कैसे लिखेंगे
A. //This is a comment
B.
C. /* This is a comment */
D. Both A and C
Solution
D. Both A and CExplanation
In JavaScript, you can write comments using two different syntaxes:
- Single-line comments : // use for single line comment
- Multi-line comments: Use /* to begin a multi-line comment, and */ to end it.