O'Reilly logo
  • Nate Wittnam thinks this is interesting:

The topic of this can be confusing, but it does not have to be. Just remember that, in general, this is used inside of functions to refer to the object the function is contained within, as opposed to the function itself [exceptions include using the new keyword or call() and apply()].


Cover of JavaScript Enlightenment


this refers to the object