Advanced Topics of Javascript
summary
Covers concrete JavaScript behavior: functions are values (assignable, mutable, passed as callbacks), function scope is per-function not per-block and variables are visible inside out, closures create private state with examples like createCounter and createPizzaPrinter that keep hidden variables, IIFEs isolate modules, and function context explains why this becomes window for bare calls and how call/apply/bind or closures fix it. Slides and code examples are linked.
AI-written summary · about
chapters (20)
- 0:00Introduction and setup
- 1:05JavaScript quirks and history
- 3:12Functions as values
- 7:04Callbacks and practical use
- 9:33Function scopes and closures
- 16:22Local variables and VAR
- 17:47Immediately invoked functions
- 19:31Closures for private variables
- 24:37Practical closure examples
- 26:28Function context and this
- 28:14Default context window
- 30:00Method context and objects
- 32:09Context loss in callbacks
- 33:32Fixing context with call
- 36:01Binding context permanently
- 37:49Callbacks and context issues
- 39:55Closures vs binding
- 40:39Resources and exercises
- 42:24Further learning materials
- 43:06About the speaker and mentorship
