Solution Review: isPrototypeOf

This lesson will explain the solution to the problem in the previous lesson.

We'll cover the following...

Solution #

Press + to interact
function isPrototype(){
var obj1 = {x: 1};
var obj2 = Object.create(obj1)
console.log(
obj1.isPrototypeOf(obj2)
);
}
isPrototype()

Explanation #

In this challenge, you had to write some code on line 3 so that the statement on ...