Common Misconceptions About Inheritance in JavaScript
Eric Elliott
1.91K67

Could the mouse factory function be written without using Object.assign by using the 2nd argument for Object.create. e.g. Object.create(animal, { animalType: ‘mouse’ … }); , or does this work slightly differently?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.