function Dog() { this.bark2times=function() { this.bark(); this.bark(); } this.bark=function() { alert('wuff'); } } Bob=new Dog(); Bob.bark2times();