1.
How do you write a single-line comment in JavaScript?
2.
How do you write a multi-line comment in JavaScript?
3.
What will be the output of console.log("Hello World!"); // This is a comment?
4.
Which of the following is ignored by the JavaScript interpreter?
5.
How can comments help in debugging JavaScript code?
6.
What is the purpose of comments in code?
7.
How can you comment out a block of code in JavaScript?
8.
Which of the following is a valid single-line comment?
9.
Can comments be nested in JavaScript?
10.
How do you comment out the rest of a line after a statement in JavaScript?