1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 9
  4. Which keyword is used to declare a variable in JavaScript?

Added 9 Nov 2026

Which keyword is used to declare a variable in JavaScript?

  1. int
  2. var Correct answer
  3. string
  4. declare

Correct answer

B. var

16 views

MCQSEXAM

Explanation

var, let, and const are used to declare variables in JavaScript. Source: Nabeel Academy, Chapter 3 MCQs (JavaScript section).

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