diff --git a/blog_posts/javascript-classical-vs-prototypal-inheritance.md b/blog_posts/javascript-classical-vs-prototypal-inheritance.md index 8eaa0d73c..ff0a96598 100644 --- a/blog_posts/javascript-classical-vs-prototypal-inheritance.md +++ b/blog_posts/javascript-classical-vs-prototypal-inheritance.md @@ -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'; ```