Loading…

How do you write a comment in Javascript?

There are two types of comments we can write in JavaScript; single line comment and multiline comment. To create a single line comment, the users have to place two slashes “//” in front of text or code which they wish to have the JavaScript interpreter ignore. For multiline comments, use /* from the beginning of the comment and end it with */.

Suggest An Answer

No suggestions avaliable!

Latest post from Javascript interview questions

Ask Question