JavaScript: from first line to expert

The language of the web. Start with printing a message and work up to closures, classes, async code and real algorithms.

Beginner to expert · 14 lessons · about 129 minutes

Start the track
  1. Your first program BeginnerMake the computer print a message, and meet the console.5 min
  2. Variables BeginnerGive names to values with let and const, so your program can remember things.6 min
  3. Numbers and text BeginnerDo arithmetic, and build sentences neatly with template literals.7 min
  4. Making decisions BeginnerUse if and else so your program reacts to its input.8 min
  5. Loops BeginnerRepeat work with for and while instead of copying lines.8 min
  6. Functions BeginnerPackage a piece of work under a name, give it inputs, and get a result back.8 min
  7. Arrays IntermediateKeep many values in one list, and transform them with map, filter and reduce.10 min
  8. Objects IntermediateGroup related values under names, and give objects their own methods.10 min
  9. Working with text IntermediateSlice, search, split and join strings with JavaScript's built-in methods.9 min
  10. Handling errors IntermediateThrow errors when something is wrong, and catch them so your program can recover.9 min
  11. Classes IntermediateDescribe a kind of object once with a class, then make as many as you need.10 min
  12. Closures and functions as values AdvancedPass functions around, return them from other functions, and let them remember.12 min
  13. Promises and async/await AdvancedWork with things that take time, like network requests, without freezing your program.12 min
  14. Recursion, memoization and searching ExpertSolve problems that call themselves, make slow code fast, and search sorted data in a few steps.15 min
Track project · Reviewed by a mentor · PremiumProject: Budget trackerBuild a budget tracker that records income and spending, refuses bad entries, and reports by category and by month.