this Keyword
js-this
Question Banks
JavaScript Language Trivia
Beginner JS quirks to predict and explain: `==` vs `===`, hoisting, `this` binding in different call sites, and one quick closure trace.
JavaScript `this` and Arrow Function Code Traces
Six traces covering lost-`this` on extracted methods, arrow inherits-from-enclosing, function-as-constructor return, IIFE `this`, and static vs prototype methods.
JavaScript Lost-this and Four Fixes Quiz
Repair a method whose inner regular function loses `this`, four ways (arrow function, `bind`, save-this-in-self pattern, explicit `.call`), plus an explainer on lexical-vs-dynamic this binding.
Community
The this Keyword: Six Rules and the Edge Cases
The six rules that fully decide the value of this in JavaScript: lexical for arrows, new, explicit binding, implicit binding, and the strict/sloppy default. Plus the four-step diagnostic I use on every this bug.
The JavaScript Debugging Stories From Real PRs
Four solutions to the same closure-and-var trap, plus one bug that took me an afternoon. 5 questions, all from real PRs where the test passed and the user-visible behavior was still wrong.
