Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

What Is THIS Keyword in JavaScript - Tutorial for Beginners

ColorCode via YouTube

Overview

Explore the intricacies of the 'this' keyword in JavaScript through this comprehensive tutorial for beginners. Delve into the global scope usage, function methods, and binding techniques. Learn about Function.bind, Function.call, and Function.apply. Understand how 'this' behaves inside constructor functions, callback functions, and arrow functions. Gain valuable insights from ColorCode's "10 Things JS Developers Should Know" series, presented by Sina Jazayeri. Follow along with code examples and practical demonstrations to master this fundamental yet often confusing aspect of JavaScript programming.

Syllabus

Intro.
THIS in Global scope.
THIS inside functions (methods).
Function.bind.
Function.call.
Function.apply.
THIS inside Constructor functions.
THIS inside callback functions.
THIS inside arrow functions.
Conclusion.

Taught by

ColorCode

Reviews

Start your review of What Is THIS Keyword in JavaScript - Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.