...

/

Solution Review: "instanceof" Operator

Solution Review: "instanceof" Operator

In this lesson, we will discuss the solutions to the questions in the previous lesson.

Question 1: Solution review #

Explanation #

To answer this question, let’s see what the type of Object.prototype is.

Press + to interact
console.log(typeof(Object.prototype))

Is Object.prototype an instance of Object?

Press + to interact
console.log(Object.prototype instanceof Object)

The answer is ...