Can I put similar methods in an associative aray like this?
var function_hold = { function1: function(){} function2: function (){} };
I
Yes thats possible and works fine.
Best Practice syntax would be the Module Pattern
var outerNamespace = {}; (function(ns) { // ns is the local name of the object ns.function1 = function() {} ns.function2 = function() {} //self executing anonymous function } (outerNamespace));