MCQ
Which of these correctly writes a comment in JavaScript?
Unit-3 Programming Fundamentals
A
<!-- comment -->
B
// comment
C
<comment>
D
# comment
Explanation
In JavaScript, // starts a single-line comment.
Related MCQs
What is HTML best described as?
Unit-3 Programming Fundamentals
View
How many times will the loop for (let i = 5; i > 0; i--) execute?
Unit-3 Programming Fundamentals
View
What is the file extension of an HTML document?
Unit-3 Programming Fundamentals
View
Which syntax is used to write a comment in HTML?
Unit-3 Programming Fundamentals
View
What is the process of finding and fixing errors in a program called?
Unit-3 Programming Fundamentals
View
Which loop is guaranteed to execute its body at least once?
Unit-3 Programming Fundamentals
View