JavaScript roadmap
Write clear JavaScript, transform collections, and understand the order of asynchronous work.
Learning path
Follow the stages in order. Expand a stage for its goal and checkpoint, or choose a topic to open its lesson.
1Get comfortable with the basics
Choose let or const, trace reassignment, and write strict comparisons and loops.
CheckpointBuild a small points calculator and predict every line of its output.
2Organize data and behavior
Write functions with return values and represent related fields in arrays of objects.
CheckpointTransform an array of book records into an ordered list of unread titles.
3Handle delayed work
Read promises, use async and await, and decide how to show pending, success, empty and error states.
CheckpointBuild a small view that loads a public data set and reports success or failure clearly.
4Build reusable browser behavior
Separate logic into modules, connect page controls to events, and handle request failures explicitly.
CheckpointBuild a search result view that handles an unsuccessful response and cancels an older search when a new one starts.
5Keep a program responsive
Trace asynchronous work and keep independent state in closures. Move expensive calculations off the main page when appropriate.
CheckpointPredict a script’s output order and explain how to keep its interface responsive during a long calculation.