Merge pull request #657 from simmayor/prototype-inheritance2

Prototype-inheritance - semicolons
This commit is contained in:
Ilya Kantor 2018-12-24 12:40:48 +03:00 committed by GitHub
commit 8aa7281d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ let rabbit = {
let longEar = { let longEar = {
earLength: 10, earLength: 10,
__proto__: rabbit __proto__: rabbit
} };
// walk is taken from the prototype chain // walk is taken from the prototype chain
longEar.walk(); // Animal walk longEar.walk(); // Animal walk
@ -146,7 +146,7 @@ let animal = {
let rabbit = { let rabbit = {
__proto__: animal __proto__: animal
} };
*!* *!*
rabbit.walk = function() { rabbit.walk = function() {