commit
f1d070f517
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ let rabbit = Object.create(animal);
|
|||
alert(rabbit.eats); // true
|
||||
|
||||
*!*
|
||||
alert(Object.getPrototypeOf(rabbit) === animal); // get the prototype of rabbit
|
||||
alert(Object.getPrototypeOf(rabbit) === animal); // true
|
||||
*/!*
|
||||
|
||||
*!*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue