EASY (10 MCQs)

1 What will be the output?

let x = 10;
console.log(typeof x);

A. "string"

B. "number"

C. "object"

D. "undefined"

Answer: B


2 What is the output?

console.log(typeof null);

A. "null"

B. "undefined"

C. "object"

D. "number"

Answer: C


3 Which keyword is used to declare a constant?

A. var