Search⌘ K
AI Features

Quiz 1: "instanceof" Operator

Explore and assess your knowledge of the instanceof operator in JavaScript. This quiz helps you grasp type coercion, prototype chains, and inheritance principles essential for interviews.

We'll cover the following...

Question 1

Technical Quiz
1.

What will be the output of the code below:

var names = ["Tom","Anna",2,true]
console.log(names instanceof String)
console.log(names instanceof Number)
console.log(names instanceof Object)
console.log(names instanceof Array)
A.

true

true

true

true

B.

false

false

false

false

C.

false

true

false

true

D.

false

false

true

true

E.

true

false

true

true


1 / 1

Question 2