Update article.md
Give results of 'alert' ('true') rather than description of method. Code seems pretty self-explanatory.
This commit is contained in:
parent
fc120b01ca
commit
73c20d8220
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ let rabbit = Object.create(animal);
|
||||||
alert(rabbit.eats); // true
|
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