Rate this script:  I Love it  /   I Hate it

Create a JavaScript Object the JSAN Way


Code

if (!this.AA) AA = {};AA = function(){}AA.prototype ={       test: function()       {               document.writeln("test");       }}blah = new AA();blah.test();

 

 
Create a JavaScript Object the JSAN Way scripts | Create a JavaScript Object the JSAN Way snippet | Create a JavaScript Object the JSAN Way example | Create a JavaScript Object the JSAN Way tutorial | Create a JavaScript Object the JSAN Way code