gibney.org : Technology : Javascript : Experiments : Functions as Objects


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





Functions as Objects
(Entry Nr. 267, by user 1 | edit)
function Dog() { this.bark2times=function() { this.bark(); this.bark(); } this.bark=function() { alert('wuff'); } } Bob=new Dog(); Bob.bark2times();
Create a new entry at this position