Can the outer's value be accessed from a function of the inner object? Is there a way?
var outer = {
value: "1",
inner: {
getValue: function() {
return value; // undefined
}
}
}
alert(outer.inner.getValue()); // fails