Posts by Leikovsk • 43 points
2 posts
- 
		1 votes3 answers1333 viewsA: How to overwrite a method via prototype on a javascript object?I rewrote the code thinking about the problem and using the past tips: var inheritance = function(father, child) { var fatherCopy = Object.create(father.prototype); child.prototype = fatherCopy;… javascriptanswered Leikovsk 43
- 
		3 votes3 answers1333 viewsQ: How to overwrite a method via prototype on a javascript object?Hello! I’m studying javascript, but specifically Parasitic Combination Inheritance, and came across the methods override. It turns out I created the following code: var Base = function(nome, texto)… javascriptasked Leikovsk 43