function A() { } A.prototype.func1 = function() { alert("I'm func1"); } A.prototype.func2 = function() { this.func1(); } var b = new A(); b.func2();