Weird JavaScript statement, what does it mean? -


I'm looking at this code, what is this doing?

  var obj = this;    

This only stores the current context of the this object This is useful for future use, because in this value of , depends on a reference.

Comments