Javascript and name spaces

Search for: javascript name space approach

Just an initial read on the subject

Search for: Examples of javascript namespaces

Looks like a lot of discussion on the subject

Search for: javascript colon return

Interesting what you will find :)

A quick overview of the language from Douglas Crockford


function name(argumentlist) block 

and

var name = function name (argumentlist) block ;

In Javascript, like a String, a function is an object!!

Functions can have inner functions. this is called a closure


var DED = function() {
	return {
		method_1 : function() {
			// do stuff here
		},
		method_2 : function() {
			// do stuff here
		}
	};
}();

what is the syntax for declaring an empty javascript object

Search for: what is the syntax for declaring an empty javascript object


function Employee() {
  var registerA = "Initial Value";
  this.setRegisterA = function(param) { registerA = param };
  this.dept = "HR";
  this.manager = "John Johnson";
}

Search for: javascript initialization variables

Search for: Javascript array initialization equivalence

Search for: Javascript associative array initialization equivalence

An interesting detour: javascript, lazlo, associative arrays