in JavaScript by
Q:
How to write a comment in JavaScript?

1 Answer

0 votes
by

here are two types of comments in JavaScript.

  1. Single Line Comment: It is represented by // (double forward slash)
  2. Multi-Line Comment: Slash represents it with asterisk symbol as /* write comment here */

Related questions and answers

0 votes
asked Jun 9 in JavaScript by sharadyadav1986
0 votes
asked Sep 19, 2021 in JavaScript by sharadyadav1986
0 votes
asked Dec 3, 2019 in JavaScript by rajeshsharma
...