1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. Which JavaScript method joins two or more arrays?

Added 10 Nov 2026

Which JavaScript method joins two or more arrays?

  1. join()
  2. concat() Correct answer
  3. merge()
  4. combine()

Correct answer

B. concat()

12 views

MCQSEXAM

Explanation

concat() joins two or more arrays and returns a new array without changing the originals: [1, 2].concat([3, 4]) gives [1, 2, 3, 4].

join() converts one array into a string; merge() and combine() do not exist.

For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.

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