What do you actually work. Check out this script here with your object ..
Javascript
var x = {
"a" : function(q) { return q+1; },
"b" : function(w) { return (this["a"])(1); }
};
document.body.innerHTML = x.b();
The result of the call x.b()is 2.
:
var myObj = {
myFunction: function(testVar)
{
return this.Utilities.helperFunction(testVar);
},
Utilities: {
helperFunction: function(anotherVar)
{
return anotherVar * 2;
}
}
}
, . this["a"], this.a, . , this["a"], - in, .
this