JavaScript’s “this”: how it works, where it can trip you up

added by Paul Wheeler
5/7/2014 6:07:52 PM

2 Kicks, 128 Views

In JavaScript, the special variable this is relatively complicated, because it is available everywhere, not just in object-oriented settings. This blog post explains how this works and where it can cause problems, concluding with best practices.