JavaScript / Basic: values and browser foundations

JavaScript β€” Basic: values and browser foundations

Establish a precise model of values, decisions, functions, closures, collections, and DOM events.

6 lessons Β· No account required

What you will learn

  • Validate input and trace scope and identity.
  • Transform collections and build safe native interactions.
  1. JavaScript values and execution environments

    Build a reliable model of values, bindings, and host APIs before adding page behavior. Use small invoice examples to distinguish language rules from browser and Node facilities.

    Start learning
  2. Coercion, comparisons, and controlled decisions

    Make decisions predictable by separating conversion, truthiness, and equality. A workshop form shows why valid zero values and missing values need different treatment.

    Start learning
  3. Functions, parameters, and lexical scope

    Design small functions with visible inputs and outputs. Trace scope and return behavior using reusable pricing and eligibility rules rather than relying on hidden global state.

    Start learning
  4. Closures and private state

    Follow the lifetime of lexical bindings and build independent stateful functions. Counters, loop callbacks, and immutable snapshots reveal what a closure retains and when it reads it.

    Start learning
  5. Objects, arrays, and deliberate updates

    Represent course records and transform collections without accidental shared mutation. Learn property access, missing values, array callbacks, and the limits of copying.

    Start learning
  6. DOM updates and user events

    Connect validated application state to a browser document. Build safe text updates and native controls, then trace event targets, propagation, and listener ownership.

    Start learning
Back to course