In JavaScript, which markup is used for comments?
A
/* */
B
//
Correct answer
C
<–
D
/* */
6 views
⚔️
Challenge a friend on Computer Science FBISE Class 9
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
In JavaScript, // starts a single-line comment and /* ... */ encloses a multi-line comment. The book prints /* */ twice, so // is the distinct correct marker.
Reference
Asked in: Matric,FBISE
Doubts & discussionNot sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ Which of the following is the correct syntax for a CSS rule? Next MCQ › How do you include JavaScript in an HTML document?