in JavaScript by (23.9k points)
Which one of the following symbol is used for creating comments in the javascript:

a) \\

b) //

c) \* *\

d) \* */

1 Answer

0 votes
by (20.8k points)

Answer: B

Reason: The single line comments always starts by the "//" and any text written in between the "// "and the end of the line is considered as comment and ignored by the JavaScript.

Related questions

0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986 (31.7k points)
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986 (31.7k points)
+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel (20.8k points)
...