Skip to main content

"this" in JavaScript : How It Really Works

Pure Code and JavaScript Continental 5
Average rating: ***..
(3.77, 13 ratings)

The resolution of “this” in JavaScript is often a confusing subject for developers. I aim to take the magic out of “this” by describing the different scenarios functions can be called and how it affects the value of “this.”

In 20 minutes I plan to cover the value of “this” when invoking functions: directly, as a method, with call/apply, and as a constructor. I’ll also briefly cover ECMAScript 6 "fat arrow” functions and how that affects the binding of “this.” I’ll also discuss closures, how/why they’re used, and how to properly capture “this” from within a closure.

Photo of Martha Girdler

Martha Girdler


designer turned web developer turned software engineer. HTML/CSS/JS/PHP/Python

Hacker School batch3, currently loving everything as a Software Engineer at Etsy


For exhibition and sponsorship opportunities at Fluent conference, contact Sharon Cordesse at (707) 827-7065 or

Download the Fluent Sponsor/Exhibitor Prospectus

For information on trade opportunities with O'Reilly conferences contact Jaimey Walking Bear at mediapartners

View a complete list of Fluent 2013 contacts