Skip to content

JavaScript / Beginner · No sign-in needed

Learn JavaScript in 7 Days

Write your first program, turn messy data into a study plan, and connect it to a webpage. Each lesson gives you something to understand, change, and build.

Start your first lesson →

A pace, not a deadline

36 lessons across seven modules. Plan around 90 minutes on Days 1–6, using the lesson estimates below. Expanded worked examples, contrasting cases and an independent checkpoint give you practice from several angles. Day 7’s delayed review is extra. These are suggested study budgets, not measured completion times.

Start with no programming experience. Most editors show console output; Day 7 has a separate webpage preview. Predict before running, use hints when stuck, and revisit older exercises. Your lesson completion stays in this browser. Split a day into two sessions if helpful. If you finish early, do the changed-input challenges; if you need longer, repeat the practice before moving on.

Already comfortable with functions, records, tests, and a small form? Continue with intermediate JavaScript →

Study by explaining, repairing, and building

Days 1–6 each budget about 90 minutes, including a debugging exercise and an independent checkpoint. Split a day into two sessions if needed. These are planning estimates; take longer whenever you need to rebuild an idea.

Predict a worked example before running it. Trace the contract in your own words, repair the day's plausible mistake, then close the examples and attempt the checkpoint. Use its acceptance cases to test a boundary as well as an ordinary input.

After checking a solution, change the input and explain why your version still works. Begin your next session by rebuilding a small part from memory. Day 7 combines the ideas in a project; Come Back Later adds delayed practice and a readiness check for your next step.

Day 1 · About 90 minutes

Your first programs

Run code, name values, and build useful messages.

  1. Hello, JavaScript17 min · Read, predict, and practice
  2. Variables & Numbers17 min · Read, predict, and practice
  3. Strings & Conversion20 min · Read, predict, and practice
  4. String Methods16 min · Read, predict, and practice
  5. Checkpoint: Study Receipt20 min · Independent checkpoint

Day 2 · About 90 minutes

Decisions and repetition

Make decisions and repeat work without losing track of state.

  1. if / else if / else17 min · Read, predict, and practice
  2. Booleans & Logic17 min · Read, predict, and practice
  3. for & while Loops20 min · Read, predict, and practice
  4. Loop Patterns16 min · Read, predict, and practice
  5. Checkpoint: Weekly Goal20 min · Independent checkpoint

Day 3 · About 90 minutes

Lists and records

Represent a study plan with arrays and objects.

  1. Arrays17 min · Read, predict, and practice
  2. Objects17 min · Read, predict, and practice
  3. References & Copies20 min · Read, predict, and practice
  4. Array Methods16 min · Read, predict, and practice
  5. Checkpoint: Inventory20 min · Independent checkpoint

Day 4 · About 90 minutes

Functions that help

Break a problem into reusable, testable pieces.

  1. Defining Functions17 min · Read, predict, and practice
  2. Scope & Parameters17 min · Read, predict, and practice
  3. Callbacks, map() & filter()20 min · Read, predict, and practice
  4. find() & sort()16 min · Read, predict, and practice
  5. Checkpoint: Recommendations20 min · Independent checkpoint

Day 5 · About 90 minutes

Messy data and debugging

Validate input, read errors, and check your assumptions.

  1. Input Validation17 min · Read, predict, and practice
  2. Errors & Debugging17 min · Read, predict, and practice
  3. Testing Your Code20 min · Read, predict, and practice
  4. Parsing Text16 min · Read, predict, and practice
  5. Checkpoint: Parser Tests20 min · Independent checkpoint

Day 6 · About 90 minutes

Build a study planner

Combine your skills into a tested program and save its data as JSON.

  1. Study Planner Core17 min · Read, predict, and practice
  2. Reports & Tests17 min · Read, predict, and practice
  3. JSON16 min · Read, predict, and practice
  4. Program Integration20 min · Read, predict, and practice
  5. Checkpoint: Saved Reports20 min · Independent checkpoint

Day 7 · About 90 minutes

Bring it to the browser

Connect code to a form, finish a project, and solve a fresh brief.

  1. HTML & the DOM12 min · Read, predict, and practice
  2. Events & State14 min · Read, predict, and practice
  3. Forms & Validation14 min · Read, predict, and practice
  4. Capstone: Study Planner35 min · Read, predict, and practice
  5. On Your Own: Reading Report15 min · Independent checkpoint
  6. Come Back Later: Review Challenges20 min · Return in a few days · extra practice