Course Overview
JavaScript: from your first value to a working program
A total changes when you add an item. A booking is accepted only when a seat is available. A delivery update arrives after the rest of the program has started. These are the kinds of problems you will solve with JavaScript here.
You will start by printing a value, then learn to make decisions, repeat work, organize data, and handle results that arrive later. You can use the built-in editor without installing anything.
Before you begin
This is the third course in HTML → CSS → JavaScript → vanilla DOM. You can already structure and style a page; you do not need previous programming experience. The opening example explains the connection to script.js. After that, most work happens in a JavaScript file and the Console. You will not use a JavaScript framework.
What you will learn
- Core language fundamentals: values, variables, operators, and control flow.
- Functions — how to define, call, and compose them.
- Arrays and objects — the two data structures you will use every day.
- Built-in helpers for strings, numbers, dates, and math.
- Functional patterns:
map,filter,reduce, and recursion. - Object-oriented programming with ES6 classes and inheritance.
- Asynchronous JavaScript: callbacks, Promises, and
async/await.
Course outline
- Introduction — run your first script and inspect values and types in the Console.
- Variables and Operators — name values, update totals, convert text to numbers, and fix a calculation.
- Control Flow — choose a path with conditions and repeat work with loops.
- Functions — turn repeated steps into reusable jobs, then explore scope and closures.
- Arrays — keep ordered collections, find entries, and transform lists.
- Objects and Built-ins — name related facts and work with
Map,Set, numbers, JSON, math, and dates. - Strings and Regular Expressions — prepare messages and validate text patterns.
- Functional Programming — pass functions as values and combine transformations into a pipeline.
- Object-Oriented Programming — give objects behavior, then build classes with inheritance and private state.
- Asynchronous JavaScript — understand delayed work, await Promises, combine independent results, and retry failures.
Next, continue with vanilla JavaScript DOM: select native elements, respond to browser events, and connect the language to the HTML and CSS you already know. No framework is needed.
How to work through the lessons
The opening lesson connects an HTML page to script.js. Later exercises focus on JavaScript and its Console output rather than changing page elements.
- Read the explanation, then run the example and compare its output with the description.
- Try the suggested small change. Predict what will happen before you run it again.
- In an exercise, complete one numbered task at a time. Run your code to inspect the result, then Submit to check your work.
- Read an error from its first relevant line. Check the named variable, punctuation, and the value you passed before changing several things at once.
- Work through the modules in order. Later exercises reuse earlier ideas with different data; a new scenario is a chance to apply what you already know.
The asynchronous module uses an offline preview that captures delayed Console output. Its sample services do not contact real websites. Some of the later topics, such as closures and Promises, take more than one read; keep the example open while tracing what happens.
Intentionally later
This beginner course includes the built-ins you will use regularly for application logic: arrays, objects, Map, Set, Number, BigInt, JSON, Math, and Date. ArrayBuffer is for low-level binary data and belongs in a later browser or data-processing course. eval() executes a string as code, so it is intentionally not taught as a tool for application code; write direct functions and data transformations instead.
Recommended background
Already familiar with these topics? You can start and finish this course without completing the recommendations. Knowledge gained elsewhere is enough; no waiver is needed.
- CSS
Recommended earlier step in the Front End Track; familiarity with styled HTML pages provides context for browser examples.
Syllabus
- Comparisons and strict equality
- Truthiness and combined conditions
- Function inputs and results
- Conditionals
- Combined Conditions Before FizzBuzz
- Challenge: FizzBuzz Announcer
- Switch Statement
- Switch a Venue Sign
- Challenge: Power Loadout
- For Loops
- While Loop
- Break and Continue
- Stop a Ticket Scan
- Challenge: Number Guess Referee
- Rainfall Routing Walkthrough
- Score Batch Report
- ✦Module Quiz
- Arrays
- Student Scoreboard
- Challenge: Student Course Scoreboard
- Array Mutation Methods
- Array Slice and Concat
- Array Iteration Methods
- Multidimensional Arrays
- Destructuring
- Array Reverse and Sort
- Array Fill
- Array Find and Includes
- Array Flat and FlatMap
- Array Reduce, Some, and Every
- Charging Rack Restock Report
- Pantry Restock Plan
- ✦Module Quiz
- Object Key-Value Pairs
- Student Course Record
- Object Methods and Destructuring
- Object copies and optional properties
- Map and Set Collections
- Playlist Lookup
- Number and BigInt Boundaries
- Ticket Ledger
- JSON
- Throwing and catching errors
- Math and Date
- Date Basics
- Supply Bin Audit
- Volunteer Shift Audit
- Workshop Attendance Feed
- Parcel Scan Feed
- ✦Module Quiz
- Higher-Order Functions
- Callbacks
- map, filter, and reduce
- Student Register with map
- Challenge: Student Register
- Recursion
- Project - Data Transform Pipeline
- Extend the inventory report
- Handle an Error-First Callback
- Report Seat Reservation Results
- Summarize Completed Bike Rides
- Summarize Delivered Parcels
- ✦Module Quiz