1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 9
  4. In JavaScript, which markup is used for comments?

Added 15 Nov 2026

In JavaScript, which markup is used for comments?

  1. /* */
  2. // Correct answer
  3. <–
  4. /* */

Correct answer

B. //

6 views

MCQSEXAM

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

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 9 MCQs

Practise all Computer Science FBISE Class 9 MCQs

Similar MCQs