Below is the Meta-Code I am currently working with:
var Parent = function(){}
Parent.prototype.doSomething = function(){
console.log("As a parent I did like a parent");
}
var Child = function(){}
Child.prototype = new Parent();
Child.prototype.doSomething = function(){
console.log("As a child I did like a child");
//This is where I am unsure
}
What I want it to achieve in just two lines:
As a child I acted like a child
As a parent I acted like a parent
Although calling a parent function after overriding it raises some doubts for me.