Q. How do you write a multi-line comment in JavaScript?

  • (A) /* comment */
  • (B) // comment
  • (C) # comment
  • (D) <!-- comment -->
πŸ’¬ Discuss
βœ… Correct Answer: (A) /* comment */
Explanation: JavaScript multi-line comments start with /* and end with */.
Explanation by: Mr. Dubey
JavaScript multi-line comments start with /* and end with */.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate