Skip to the content

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

  1. Lesson 45Type coercionNot started
  2. Lesson 46Truthy and falsy valuesNot started
  3. Lesson 47NaN and Object.isNot started
  4. Lesson 48Copy by value vs copy by referenceNot started
  5. Lesson 49Number limits: floating point, BigInt and moneyNumber limits: floating point, BigInt, moneyNot started
  6. Lesson 50Scope: global, function and blockNot started
  7. Lesson 51var vs let vs constNot started
  8. Lesson 52Hoisting and the temporal dead zoneNot started
  9. Lesson 53ClosuresNot started
  10. Lesson 54The loop-with-setTimeout bugNot started
  11. Lesson 55How this is setNot started
  12. Lesson 56call, apply and bindNot started
  13. Lesson 57Prototypes and the prototype chainNot started
  14. Lesson 58ClassesNot started
  15. Lesson 59Arrow functions vs normal functionsNot started
  16. Lesson 60map, filter and reduceNot started
  17. Lesson 61find, some, every, flat, flatMap and the sort trapNot started
  18. Lesson 62Spread, rest and destructuringNot started
  19. Lesson 63Shallow vs deep copy and structuredCloneNot started
  20. Lesson 64Map and SetNot started
  21. Lesson 65String methods and regular expressionsNot started
  22. Lesson 66Dates and JSONNot started
  23. Lesson 67Sync vs async, and callbacksNot started
  24. Lesson 68The event loopNot started
  25. Lesson 69PromisesNot started
  26. Lesson 70async and awaitNot started
  27. Lesson 71Promise.all, allSettled, race and anyNot started
  28. Lesson 72Errors: try, catch, finally and custom errorsNot started
  29. Lesson 73Modules: ES modules vs CommonJSNot started
  30. Lesson 74Optional chaining, nullish coalescing, getters and settersNot started
  31. Lesson 75Iterators and generatorsNot started