Update javascript-classical-vs-prototypal-inheritance.md

This commit is contained in:
Angelos Chalaris
2021-11-15 18:36:45 +02:00
committed by GitHub
parent f064ee1f3b
commit aaef92333e

View File

@ -57,5 +57,8 @@ const dog = Object.create(animal);
const cat = Object.create(animal);
const max = Object.create(dog);
max.name = 'Max';
const claire = Object.create(cat);
claire.name = 'Claire';
```