Skip to main content Accessibility Feedback

Understanding “this” in JavaScript

If you’re like me, you probably find this in JavaScript a bit weird and confusing.

Fortunately, my buddy Zac Gordon from JavaScript for WordPress has put together a 3-part video series—for free!— explaining what is, how it works, when to use it, and some important gotchas.

Here’s the first video. Click through to his article to see all three.

🔥 Hot off the press! I just launched a new pocket guide. Learn about ES6 arrow functions, let and const, function hoisting, and more.

Have any questions or comments about this post? Email me at or contact me on Twitter at @ChrisFerdinandi.

Get Daily Developer Tips