0 votes
133 views
in Javascript by (2.0k points)
edited

How to write a comment in JavaScript?

1 Answer

0 votes
by (2.0k points)
edited

There 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

0 votes
1 answer 121 views
0 votes
1 answer 183 views
asked Apr 3, 2022 in Javascript by Doubtly (98.9k points)
0 votes
1 answer 171 views
0 votes
0 answers 122 views
asked Apr 3, 2022 in Javascript by Doubtly (98.9k points)
0 votes
1 answer 211 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...