in JavaScript by (32.2k points)

Which symbol is used for comments in Javascript?

a) \\

b) //

c) \* *\

d) \* */

1 Answer

0 votes
by (32.2k points)
Answer:-  B

Reason: Single line comments start with //.

Any text between // and the end of the line will be ignored by JavaScript

Related questions

0 votes
asked Oct 8, 2022 in JavaScript by rajeshsharma (23.9k points)
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986 (31.6k points)
+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel (20.8k points)
...