javascript - Get this of this -
(purely fictional!)
how can descend()
return 1,2,3...?
obj = { val: 1, obj: { val: 2, obj: { val: 3, obj: { val: 4, descend: function() { return this.val; } } } } } obj.obj.obj.obj.descend();
Comments
Post a Comment