Part 5 of 25
JavaScript in Depth
Part 4 taught you how to write JavaScript. This part teaches you how JavaScript really works underneath. These are the topics that separate a developer who "can make it work" from one who can explain why it works: type coercion, references, scope, closures, this, prototypes, the event loop and promises. They appear in almost every JavaScript interview, both as spoken questions ("what is a closure?") and as "predict the output" puzzles. Read slowly, run every example yourself, and make sure you can explain each idea out loud.
Your progress
0%0 of 31 lessons complete
A lesson is complete when its quiz and all three practice levels are passed.
31 lessons in this part
- Lesson 45Type coercionNot started
- Lesson 46Truthy and falsy valuesNot started
- Lesson 47NaN and Object.isNot started
- Lesson 48Copy by value vs copy by referenceNot started
- Lesson 49Number limits: floating point, BigInt and moneyNumber limits: floating point, BigInt, moneyNot started
- Lesson 50Scope: global, function and blockNot started
- Lesson 51var vs let vs constNot started
- Lesson 52Hoisting and the temporal dead zoneNot started
- Lesson 53ClosuresNot started
- Lesson 54The loop-with-setTimeout bugNot started
- Lesson 55How this is setNot started
- Lesson 56call, apply and bindNot started
- Lesson 57Prototypes and the prototype chainNot started
- Lesson 58ClassesNot started
- Lesson 59Arrow functions vs normal functionsNot started
- Lesson 60map, filter and reduceNot started
- Lesson 61find, some, every, flat, flatMap and the sort trapNot started
- Lesson 62Spread, rest and destructuringNot started
- Lesson 63Shallow vs deep copy and structuredCloneNot started
- Lesson 64Map and SetNot started
- Lesson 65String methods and regular expressionsNot started
- Lesson 66Dates and JSONNot started
- Lesson 67Sync vs async, and callbacksNot started
- Lesson 68The event loopNot started
- Lesson 69PromisesNot started
- Lesson 70async and awaitNot started
- Lesson 71Promise.all, allSettled, race and anyNot started
- Lesson 72Errors: try, catch, finally and custom errorsNot started
- Lesson 73Modules: ES modules vs CommonJSNot started
- Lesson 74Optional chaining, nullish coalescing, getters and settersNot started
- Lesson 75Iterators and generatorsNot started