0

I am seeing in a lot of books and online coding tutorials suggesting to store variable "this" to an inner variable of a function especially while using Javascript. Can someone give a brief explanation on this.

TIA.

Chakri
  • 725
  • 2
  • 7
  • 22
  • http://bonsaiden.github.io/JavaScript-Garden/#function.this . Scroll to "Common pitfalls". – Teemu Mar 27 '15 at 20:14
  • [Scope and 'this'](http://toddmotto.com/everything-you-wanted-to-know-about-javascript-scope) – tenub Mar 27 '15 at 20:15
  • See also http://stackoverflow.com/questions/20279484/how-to-access-the-correct-this-context-inside-a-callback – Felix Kling Mar 27 '15 at 20:16

0 Answers0