/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// testing namespace var crewrApp = new function() { var internalFunction = function() { console.log('soy una función interna'); }; this.publicFunction = function() { console.log('soy una función pública'); }; var test1 = 'testing 1'; this.test2 = 'testing 2'; };