0 votes
in JavaScript by
Which one of the following symbol is used for creating comments in the javascript:

a) \\

b) //

c) \* *\

d) \* */

1 Answer

0 votes
by

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
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...