Is there any difference between the results of Dog.prototype = Object.create(Animal.prototype)
and Dog.prototype = {...Animal.prototype}
?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Is there any difference between the results of Dog.prototype = Object.create(Animal.prototype)
and Dog.prototype = {...Animal.prototype}
?