JavaScript: this is it

You’ll finally understand how this works in JavaScript… And you can bet it’s worth it!
Before we start…
All videos in one download
644 MB
All code examples in one download
21.3 KB
The Great Misunderstanding
Intro
2 mins
Methods or functions? References and first-class functions
4 mins
How do I know what this is?
The golden rule
5 mins
this is defined at call-time
4 mins
What about outside the golden rule?
4 mins
Common API behaviors
4 mins
What about arrow functions?
Reminders on arrow functions
3 mins
Execution context
6 mins
Lexical resolution
9 mins
Arrow functions are not a silver bullet!
3 mins
Explicitly specifying this
Functions are objects
3 mins
call()
4 mins
apply()
3 mins
Ensuring a given this
bind()
5 mins
Re-implementing bind()
7 mins
Re-implementing bind(): visual run-through
4 mins
The binding operator
3 mins
Explicit guarantee in the constructor
5 mins
Implicit guarantee by field initializer + arrow function
3 mins
Explicit guarantee by decorator
3 mins
Want more video courses?
3 mins
Further reading…