thecodezone.
The Code Zone
Short steps, at your pace · Free lessons and practice · Member video walkthroughs
Save your next small win.

Checking your account…

ONE ACTIVITY. ONE SMALL WIN.

Your first steps in JavaScript.

Learn an idea, watch it in action, then try it yourself. Each activity has its own page and completion button.

Rob welcomes learners into his coding workshop, follows a visual roadmap, and gets ready to practice.

01 / 6 ACTIVITIES

Comments

Understand the notes JavaScript skips, then try writing your own.

0 of 6 complete

  1. 01.01Understand commentsLearn · 4 min
  2. 01.02Watch: comments introductionWatch · 3 min
  3. 01.03Code comments with RobCode along · 10 min
  4. 01.04Comment out one linePractice · 3 min
  5. 01.05Make the useful message stand outPractice · 5 min
  6. 01.06Check your comments knowledgeQuick check · 3 min

02 / 5 ACTIVITIES

Variables

Give values clear names and practice updating them.

0 of 5 complete

  1. 02.01Give a value a nameLearn · 4 min
  2. 02.02Watch: variables introductionWatch · 3 min
  3. 02.03Code variables with RobCode along · 22 min
  4. 02.04Make the values yoursPractice · 3 min
  5. 02.05Update the ticket countPractice · 5 min

03 / 6 ACTIVITIES

Strings

Create text, join messages, and clean a label with built-in methods.

0 of 6 complete

  1. 03.01Write text with stringsLearn · 4 min
  2. 03.02Watch: strings introductionWatch · 3 min
  3. 03.03Build a greeting with RobCode along · 10 min
  4. 03.04Fix the missing spacePractice · 4 min
  5. 03.05Explore string methodsCode along · 19 min
  6. 03.06Clean a text labelPractice · 5 min

04 / 8 ACTIVITIES

Numbers

Calculate with numeric values, total diner orders, and choose a rounding tool.

0 of 8 complete

  1. 04.01Calculate with numbersLearn · 4 min
  2. 04.02Watch: numbers introductionWatch · 2 min
  3. 04.03Code numbers with RobCode along · 14 min
  4. 04.04Add numeric textPractice · 4 min
  5. 04.05Total two diner ordersPractice · 8 min
  6. 04.06Transform a numberPractice · 7 min
  7. 04.07Choose a rounding toolLearn · 5 min
  8. 04.08Make room for everyonePractice · 5 min

05 / 6 ACTIVITIES

Booleans

Represent true-or-false states, toggle a value, and choose names that explain its meaning.

0 of 6 complete

  1. 05.01Think in true and falseLearn · 5 min
  2. 05.02Watch: Booleans introductionWatch · 2 min
  3. 05.03Flip a Boolean with RobCode along · 7 min
  4. 05.04Fix the status switchPractice · 5 min
  5. 05.05Name the state clearlyLearn · 3 min
  6. 05.06Give the status clear namesPractice · 4 min

06 / 6 ACTIVITIES

Logical & comparison operators

Compare values, include boundaries, and combine Boolean conditions before writing if statements.

0 of 6 complete

  1. 06.01Compare values deliberatelyLearn · 4 min
  2. 06.02Watch: operator introductionWatch · 3 min
  3. 06.03Test conditions with RobCode along · 16 min
  4. 06.04Fix two comparison rulesPractice · 5 min
  5. 06.05Combine Boolean conditionsLearn · 4 min
  6. 06.06Repair the workshop rulesPractice · 5 min

07 / 7 ACTIVITIES

If, else & else if

Choose which block runs, select an alternative, and check several possibilities in order.

0 of 7 complete

  1. 07.01Choose when code runsLearn · 3 min
  2. 07.02Follow the branches with RobCode along · 15 min
  3. 07.03Keep zero out of the positive branchPractice · 4 min
  4. 07.04Choose one of two pathsLearn · 3 min
  5. 07.05Send one weather planPractice · 5 min
  6. 07.06Check several possibilitiesLearn · 4 min
  7. 07.07Fix the time-of-day greetingPractice · 6 min

08 / 7 ACTIVITIES

Switch statements

Match cases, stop fall-through, share responses, and inspect a switch(true) range example.

0 of 7 complete

  1. 08.01Match a value to a caseLearn · 3 min
  2. 08.02Explore switch with RobCode along · 5 min
  3. 08.03Stop the extra messagePractice · 5 min
  4. 08.04Share a response between casesLearn · 3 min
  5. 08.05Give Sunday its shared casePractice · 4 min
  6. 08.06Understand switch with trueLearn · 4 min
  7. 08.07Match the grade rangesPractice · 6 min

09 / 6 ACTIVITIES

Ternary & conditional challenges

Choose values with short expressions, then test age boundaries and equal-length names.

0 of 6 complete

  1. 09.01Choose a value with a ternaryLearn · 3 min
  2. 09.02Choose messages with RobCode along · 7 min
  3. 09.03Choose two messagesPractice · 5 min
  4. 09.04Watch the age challengeWatch · 2 min
  5. 09.05Check the age boundariesPractice · 6 min
  6. 09.06Compare two name lengthsPractice · 6 min

10 / 5 ACTIVITIES

Project 1: Laundry order

Plan the order, count loads, price extras and build a receipt for instructor review.

0 of 5 complete

  1. 10.01Plan a laundry orderLearn · 4 min
  2. 10.02Plan the project with RobWatch · 8 min
  3. 10.03Count the required loadsPractice · 6 min
  4. 10.04Charge only for selected extrasPractice · 7 min
  5. 10.05Build and review the receiptPractice · 12 min

11 / 6 ACTIVITIES

Loop foundations

Trace repetition, include endpoints, count down and keep a running total.

0 of 6 complete

  1. 11.01Repeat a task with a loopLearn · 4 min
  2. 11.02Explore for loops with RobWatch · 16 min
  3. 11.03Include the final numberPractice · 5 min
  4. 11.04Explore while loops with RobWatch · 7 min
  5. 11.05Finish the countdownPractice · 5 min
  6. 11.06Keep a running totalPractice · 6 min

12 / 7 ACTIVITIES

Loop challenges & review

Generate a table, filter values, build a selected sum and compare do/while.

0 of 7 complete

  1. 12.01Generate a multiplication tablePractice · 7 min
  2. 12.02Watch the odd-number challengeWatch · 5 min
  3. 12.03Print only the odd numbersPractice · 6 min
  4. 12.04Add only the even numbersPractice · 8 min
  5. 12.05Run once before checkingLearn · 4 min
  6. 12.06Perform the first checkPractice · 5 min
  7. 12.07Trace and explain a loopLearn · 5 min

13 / 6 ACTIVITIES

Reusable functions

Define, call and return values, then convert temperatures.

0 of 6 complete

  1. 13.01Define once, call againLearn · 5 min
  2. 13.02Code functions with RobWatch · 17 min
  3. 13.03Make the function runPractice · 5 min
  4. 13.04Send a result backPractice · 5 min
  5. 13.05Convert temperatures with RobWatch · 6 min
  6. 13.06Fix the conversion orderPractice · 5 min

14 / 7 ACTIVITIES

Function challenges

Model age and volume, map random fractions and compare dice.

0 of 7 complete

  1. 14.01Model age and volumeWatch · 7 min
  2. 14.02Use the supplied age modelPractice · 5 min
  3. 14.03Measure a box in three dimensionsPractice · 5 min
  4. 14.04Build a random integer helperWatch · 12 min
  5. 14.05Reach the last random choicePractice · 5 min
  6. 14.06Compare two dice with RobWatch · 6 min
  7. 14.07Give equal rolls a drawPractice · 5 min

15 / 8 ACTIVITIES

Function syntax & scope

Read arrows, compare declaration timing, trace scope and preview async functions.

0 of 8 complete

  1. 15.01Read arrow functionsWatch · 10 min
  2. 15.02Repair an arrow returnPractice · 5 min
  3. 15.03Understand declaration timingWatch · 6 min
  4. 15.04Find where a name is visibleLearn · 5 min
  5. 15.05Trace scope with RobWatch · 16 min
  6. 15.06Return the local messagePractice · 5 min
  7. 15.07Preview asynchronous functionsLearn · 5 min
  8. 15.08Trace a function from call to resultLearn · 5 min

16 / 7 ACTIVITIES

Input & output

Read terminal replies in Node.js and test conversion and comparison in the browser.

0 of 7 complete

  1. 16.01Follow input into outputLearn · 5 min
  2. 16.02Ask questions with RobWatch · 13 min
  3. 16.03Run your first terminal promptLearn · 5 min
  4. 16.04Convert a typed agePractice · 5 min
  5. 16.05Check a demo passphraseWatch · 13 min
  6. 16.06Match the exact inputPractice · 5 min
  7. 16.07Ask again after a wrong answerLearn · 5 min

17 / 4 ACTIVITIES

Math helpers & planning

Choose rounding rules and plan a fleet with an explicit optimization goal.

0 of 4 complete

  1. 17.01Choose the right Math helperLearn · 5 min
  2. 17.02Distinguish down, up and nearestPractice · 5 min
  3. 17.03Plan a field-trip fleetWatch · 10 min
  4. 17.04Use fewer buses, then fewer spare seatsPractice · 5 min

18 / 5 ACTIVITIES

Project 2: Guess the color

Plan a fixed secret, test pure helpers and build a complete terminal guessing game.

0 of 5 complete

  1. 18.01Plan the color guessing gameLearn · 5 min
  2. 18.02Watch the color project briefWatch · 8 min
  3. 18.03Give every color a slotPractice · 5 min
  4. 18.04Compare a color guessPractice · 5 min
  5. 18.05Build and test the full gameLearn · 20 min

19 / 15 ACTIVITIES

Arrays

Index, update and loop through related values, following the original array challenges.

0 of 15 complete

  1. 19.01Give related values a listLearn · 5 min
  2. 19.02Code arrays with RobWatch · 13 min
  3. 19.03Find the final itemPractice · 5 min
  4. 19.04Update one array elementPractice · 5 min
  5. 19.05Greet every namePractice · 5 min
  6. 19.06Let the food list growPractice · 5 min
  7. 19.07Calculate with array valuesWatch · 13 min
  8. 19.08Add every cart pricePractice · 6 min
  9. 19.09Find the bowling averagePractice · 6 min
  10. 19.10Keep the greatest candidatePractice · 6 min
  11. 19.11Read an array inside an arrayWatch · 7 min
  12. 19.12Choose a row, then an itemPractice · 6 min
  13. 19.13Locate two nested valuesPractice · 6 min
  14. 19.14Shuffle a copy with RobWatch · 10 min
  15. 19.15Keep every value in the shufflePractice · 7 min

20 / 9 ACTIVITIES

Array methods

Add and remove at either end, inspect returned values, and convert between lists and text.

0 of 9 complete

  1. 20.01Separate a change from its resultLearn · 5 min
  2. 20.02Watch the end of the listWatch · 11 min
  3. 20.03Inspect the end operationsPractice · 5 min
  4. 20.04Build an inclusive number listPractice · 5 min
  5. 20.05Watch the front of the listWatch · 5 min
  6. 20.06Choose the front operationsPractice · 5 min
  7. 20.07Turn lists into text and backWatch · 15 min
  8. 20.08Keep the separator consistentPractice · 5 min
  9. 20.09Reverse a basic wordPractice · 5 min

21 / 9 ACTIVITIES

Objects

Read named properties, follow nested values, preserve data and loop through own fields.

0 of 9 complete

  1. 21.01Group facts under property namesLearn · 6 min
  2. 21.02Build objects with RobWatch · 16 min
  3. 21.03Read and update the carPractice · 6 min
  4. 21.04Follow nested object valuesPractice · 6 min
  5. 21.05Let a method read its objectLearn · 6 min
  6. 21.06Preserve the pet’s toy listPractice · 6 min
  7. 21.07Loop through object keys with RobWatch · 12 min
  8. 21.08Pair each key with its valuePractice · 6 min
  9. 21.09Select string values for outputPractice · 6 min

22 / 8 ACTIVITIES

Final JavaScript challenges

Combine functions, loops, strings and objects in four original end-of-course challenges.

0 of 8 complete

  1. 22.01Choose dinner with RobWatch · 8 min
  2. 22.02Select a dinner optionPractice · 8 min
  3. 22.03Build a triangle with RobWatch · 6 min
  4. 22.04Include the final triangle rowPractice · 8 min
  5. 22.05Find a longest word with RobWatch · 13 min
  6. 22.06Keep the first longest wordPractice · 8 min
  7. 22.07Count vowels with RobWatch · 10 min
  8. 22.08Count uppercase vowels tooPractice · 8 min

Written lessons and browser practice are free. Sign in to save activity completion, private code drafts and instructor submissions.