1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. Which JavaScript function converts a string to an integer?

Added 10 Nov 2026

Which JavaScript function converts a string to an integer?

  1. parseInt() Correct answer
  2. parseFloat()
  3. toString()
  4. Number()

Correct answer

A. parseInt()

14 views

MCQSEXAM

Explanation

parseInt() converts a string to an integer. Source: Standard JavaScript content (FBISE-aligned).

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? 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