@anonymous/PresentEntireHammerheadbird
JavaScript

No description

fork
loading
repl talk
(games)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var A = function() {
    this.location = "world";
};
var C = function(){
   this.sayHello = function() {
        console.log("hello " + this.location)
    }
}
C.prototype = {
    showUpAndLeave : function() {
        this.sayHello();
        console.log("goodbye " + this.location); 
    }
};
A.prototype = Object.create(new C());

var me = new A();
me.showUpAndLeave();

console.log(me.prototype)
Native Browser JavaScript