Skip to content

Glossary: JavaScript Beyond the Basics

this

Inside a method, the object the method was called on (the one before the dot). It's decided at call time, so a method pulled off its object loses it, and arrow functions use the `this` of the surrounding code.

Where the book teaches it

Related terms

bindCallbackMethod