Return to Snippet

Revision: 30420
at August 13, 2010 11:51 by sveggiani


Initial Code
// 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';

};

Initial URL


Initial Description


Initial Title
example of a javascript namespace with public and private methods and functions

Initial Tags


Initial Language
JavaScript