Skip to content
Learn at your own pace

Learn JavaScript

Learn the language of interactive web pages, from functions and arrays to browser events and asynchronous code.

A student connects colorful building blocks beside a laptop, illustrating a sequence of programming instructions.
One small step becomes a working program.
24lessons in 6 stages
48practice exercises
24project milestones
96quiz questions
96review cards

A clear place to start

JavaScript gives web pages behavior. It can respond to a click, update a study counter, validate a form, and request data without reloading the whole page.

What you need first

Know basic HTML elements and how CSS styles them. You can try short JavaScript expressions in browser developer tools before setting up a full project.

Start with these ideas

  1. A variable names a value: const score = 10. Numbers, strings, arrays, and objects represent different kinds of data.
  2. A function takes inputs and performs a task. Conditions choose a path, and loops process repeated items.
  3. The DOM is the browser representation of the page. An event handler responds to an interaction and updates the relevant state or elements.

Connect it to a real project

Build a study planner: display goals, add a goal through a form, mark it complete, filter the list, and preserve a draft across reloads.

Study one concept at a time. Explain its everyday example in your own words, predict the worked example’s result, then try a small change. Use practice and quiz feedback to decide what to revisit. You can spread a lesson across several study sessions.

Set up your environment Tools, setup steps, and completion requirements

Start with the ideas above, then set up the tools below. Return to the starter example whenever a new term feels unfamiliar.

text
node --version
# Use a supported Node.js release and record it in your project.
# Save standalone examples as lesson.mjs.
node lesson.mjs
# DOM examples run in a browser with the referenced HTML elements.
# Keep a package lockfile and run tests in CI.

A free account saves your progress, notes, exercise evidence and spaced review cards. To complete a lesson, score at least 80% on its quiz, finish both exercises and the project checklist, and submit your project link with a reflection. Project evidence is self-reported; use the final portfolio rubrics to seek an independent code review.

Your JavaScript learning path

Work through these foundations in order, then bring them together in a project.

24 of 24 lessons · follow the stages in order

Start with a small example

map creates a new array by transforming each topic. join combines those goals into a string with one goal per line.

const topics = ['Functions', 'Arrays', 'Events'];

const goals = topics.map((topic) => `Learn ${topic}`);

console.log(goals.join('\n'));

Try it yourself

Filter the topics before mapping them, then display the number of remaining learning goals.

Put it into practice

Build a browser study planner

Turn a list of learning goals into an interactive page.

  1. Render goals from an array rather than hard-coding the markup.
  2. Handle a form that adds a new goal.
  3. Add a completion toggle and a filter for unfinished goals.
  4. Persist the list with localStorage and handle an empty list.
Keep exploring

Find your next course

Choose a language, build on it with a framework, or explore AI and search.

Showing 6 of 17 courses