Syllabus

  1. 01ClassesBuild objects from classes: write constructors and methods, use getters and setters, share behavior with inheritance, extend and override parent methods with super, add static helpers, and keep data truly private with # fields.9 lessons
    1. 01Classes and Constructors
    2. 02Instances
    3. 03Methods
    4. 04Getters and Setters in Classes
    5. 05Inheritance
    6. 06Overriding Methods
    7. 07Static Methods and Properties
    8. 08Private Fields
    9. 09Project: Bike Rental Shop
  2. 02ModulesLearn where JavaScript runs and why code is split into modules: runtime environments, the closure-based module pattern, Node's CommonJS require and module.exports, and standard ES modules with import and export.4 lessons
    1. 01Runtime Environments
    2. 02Why Modules? The Module Pattern
    3. 03CommonJS Modules in Node.js
    4. 04ES Modules
  3. 03PromisesWrite code that waits without freezing: understand asynchronous execution and setTimeout, create promises, consume them with then, catch and finally, chain dependent steps, and run several at once with Promise.all.7 lessons
    1. 01Synchronous and Asynchronous Code
    2. 02Creating Promises
    3. 03Promises That Take Time
    4. 04Consuming Promises with then()
    5. 05Handling Failure: catch() and finally()
    6. 06Chaining Promises
    7. 07Running Promises Together
  4. 04Async and AwaitWrite asynchronous code that reads like synchronous code: async functions, the await operator, sequential steps, error handling with try...catch, and running independent tasks together with Promise.all.7 lessons
    1. 01Async Functions
    2. 02The await Operator
    3. 03Dependent Steps
    4. 04Handling Errors with try...catch
    5. 05Independent Tasks
    6. 06await with Promise.all()
    7. 07Project: Café Order Queue
  5. 05RequestsTalk to web servers: how HTTP requests and responses work, JSON, sending GET and POST requests with fetch(), checking status codes, and writing request code with async and await.6 lessons
    1. 01How HTTP Requests Work
    2. 02GET Requests with fetch()
    3. 03Checking Responses
    4. 04POST Requests
    5. 05Requests with async and await
    6. 06Project: Book Club Dashboard
  6. 06Errors and DebuggingTurn errors into information: read error messages and stack traces, recognize the common error types, hunt down silent bugs with console.log(), throw your own errors, handle them with try...catch, create custom error classes, and get unstuck with documentation.7 lessons
    1. 01Reading Error Messages
    2. 02Common Error Types
    3. 03Debugging Silent Bugs
    4. 04Throwing Errors
    5. 05Handling Errors with try...catch
    6. 06Custom Error Classes
    7. 07Getting Unstuck
  7. 07JavaScript Under the HoodSee how JavaScript really behaves: hoisting and the temporal dead zone, closures, currying, the event loop that schedules callbacks and promises, and how memory is managed and leaked.5 lessons
    1. 01Hoisting
    2. 02Closures
    3. 03Currying
    4. 04The Event Loop
    5. 05Memory Management
  8. 08Best Practices and Design PatternsWrite code that stays easy to change: habits like pure functions and clear names, then four widely used design patterns, singleton, factory, observer and strategy, implemented in modern JavaScript.4 lessons
    1. 01Clean Code Habits
    2. 02Singleton and Factory
    3. 03The Observer Pattern
    4. 04The Strategy Pattern