@anonymous/ToughSoftXanthareel
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 B = function(){
   this.sayHello = function() {
        console.log("hello " + this.location)
    }
}
var C = function() {
    this.showUpAndLeave = function() {
        this.sayHello();
        console.log("goodbye " + this.location); 
    }
};

B.prototype = new C();
A.prototype = new B();

var me = new A();
me.showUpAndLeave();
Native Browser JavaScript