Javascript

Javascript

Public Domain

idunno

Download (right click, save as, rename as appropriate)

Embed

1
2
3
4
5
6
7
function TEST(param1, param2){
    this.method = function(){alert('foo')}

}

bar = new TEST();
bar.method();