Report Bug
Qus : How do you write a comment in JavaScript?
Qusजावास्क्रिप्ट में कमेंट कैसे लिखेंगे

A. //This is a comment
B.
C. /* This is a comment */
D. Both A and C


Solution
D. Both A and C



Explanation


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. 



Report Bug