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.
What you will learn
- Validate input and trace scope and identity.
- Transform collections and build safe native interactions.
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 learningCoercion, 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 learningFunctions, 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 learningClosures 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 learningObjects, 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 learningDOM 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