Skip to content

Latest commit

 

History

History
78 lines (53 loc) · 2.12 KB

File metadata and controls

78 lines (53 loc) · 2.12 KB

Module 04 — JavaScript

Purpose

This module is the canonical reference for the JavaScript language and browser APIs. It assumes the reader has completed Modules 02 and 03 and understands HTML document structure and CSS styling.

HTTP, JSON, the Fetch API, Promises, and async/await are introduced here at a surface level to complete the language picture, but are fully documented in 05 — HTTP, JSON & Fetch.


Topics Covered

  • JavaScript engines and execution model
  • ECMAScript versions
  • Variables — const, let, var
  • Data types — primitives and reference types
  • Operators
  • Strings and template literals
  • Numbers and the Math object
  • Conditionals and loops
  • Functions — declarations, expressions, arrow functions, closures
  • Scope and hoisting
  • Arrays — methods, higher-order functions
  • Objects — methods, destructuring
  • ES6+ features — spread, rest, optional chaining, nullish coalescing
  • DOM Manipulation
  • Events — listeners, bubbling, delegation
  • Browser APIs — localStorage, sessionStorage, BOM
  • Classes and OOP
  • Modules — import/export
  • Async JavaScript (introduction — see Module 05 for full coverage)

Learning Objectives

By the end of this module, the reader should be able to:

  • Explain the difference between const, let, and var and know when to use each.
  • Write functions using all three syntaxes and explain where this points in each context.
  • Use higher-order array methods (map, filter, reduce) fluently.
  • Select DOM elements, modify their content and classes, and attach event listeners.
  • Store and retrieve data from localStorage.
  • Define a class with a constructor, instance methods, and inheritance.

Prerequisites


Estimated Reading Time

70 – 90 minutes


Difficulty

🟦 Intermediate


Next Module

05 — HTTP, JSON & Fetch


Files in This Module

File Description
README.md This file
notes.md Complete JavaScript reference