1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. In JavaScript, what is the correct way to write an array?

Added 10 Nov 2026

In JavaScript, what is the correct way to write an array?

  1. (1, 2, 3)
  2. [1, 2, 3] Correct answer
  3. {1, 2, 3}
  4. <1, 2, 3>

Correct answer

B. [1, 2, 3]

12 views

MCQSEXAM

Explanation

Arrays are written with square brackets: [1, 2, 3]. Source: Standard JavaScript content (FBISE-aligned).

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 10 MCQs

Practise all Computer Science FBISE Class 10 MCQs

Similar MCQs