3. this Keyword, call, apply, bind & Arrow Functions | JavaScript & Node.js Deep Dive
Engineering counter
0:00 / 0:00
3. this Keyword, call, apply, bind & Arrow Functions | JavaScript & Node.js Deep Dive
10 просмотров · 11 дней назад
Engineering counter
14 подписчиков
10 просмотров · 11 дней назад
Episode 3 of the JavaScript & Node.js Deep Dive series.
"this" in JavaScript is decided by HOW a function is called, not where it is written. In this video we break down every rule for this, how call, apply and bind let you control it, and why arrow functions behave differently.
What you'll learn:
The 4 binding rules: default, implicit, explicit and new
this in strict mode vs non-strict mode
Losing this: callbacks, setTimeout and extracted methods
call vs apply vs bind, with real examples
Arrow functions and lexical this
this in classes, event handlers and Node.js modules
Polyfill for bind (classic interview question)
Tricky output-based interview questions on this
Previous episode: 2. Scope, Lexical Environment & Closures
Perfect for senior JavaScript / Node.js interview prep.
#JavaScript #NodeJS #thisKeyword #CallApplyBind #JavaScriptInterview