Is it possible to have a self-executing function that is the value of an object property that assigns values ββto other properties of the object?
eg. - what I would like to do is the following:
var b={ c:'hi', d:null, e:new function(){this.d=5} };
But the "this" inside the new function seems to refer to be. Is it possible to access the parent element of be (i.e., B) from within the function?
source share