Javascript OOP Prototype: Functional or OOP, you use it every day!
As you know from this blog post, classes are just functions in disguise. We used this syntax: function Animal(rating) { this.rating = rating } Animal.prototype.run = function() { console.log("I run") } But why do we use Animal.prototype in...
Jan 10, 20223 min read739

