/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var myVar = new function test(){ var privateMember = value; this.publicMember = value; }
URL: http://dhtmlkitchen.com/learn/js/singleton/