JavaScript’s this
keyword is a source of confusion for new and experienced developers alike. It can be frustrating if, for some reason, this
doesn’t point to the context that was intended.
This course will help you understand JavaScript’s this
mechanism in-depth. Marius will take us through all of the ways this
will change its values, from why many libraries use "use strict" to how arrow functions take its outer execution context’s this
.
Over 8 lessons, you’ll learn:
this
context, and how we can set it ourselvesthis
value of that function invocationthis
valuethis
is treated within arrow functions and classesFollowing the course, this
will feel less frustrating, more intuitive, and far more useful in your day-to-day.