JavaScript
Courses, paths and the MDN JavaScript Guide as a reference.
- 41 courses
- 21 ready now
- 6 paths
- 131 reference articles
Courses
- Available now
Learn JavaScript
Start programming with JavaScript, the language of the web. Learn values, variables, conditionals, functions, scope, arrays, loops, iterator methods and objects, with small projects along the way.
Beginner87 lessons - Available now
Learn JavaScript: Fundamentals
The first steps in JavaScript: print output, work with data types and operators, store values in variables, and control a program's flow with if, else if, switch and the ternary operator. Ends with three practice projects.
Beginner31 lessons - Available now
Learn TypeScript
Add a type system to your JavaScript. Learn type inference and annotations, typed functions, arrays and tuples, enums, object types, generics, unions, type narrowing and interfaces, and let the compiler catch bugs before your code runs.
Intermediate48 lessons - Available now
Learn Intermediate JavaScript
Take JavaScript further: classes and inheritance, modules, promises and async/await, HTTP requests with fetch, debugging and error handling, and how the language works under the hood.
Intermediate49 lessons - Available now
Learn Node.js
Run JavaScript on the server with Node.js. Learn what back-ends do, core modules like process, os, util, events, fs and streams, and build HTTP servers that route requests, read bodies and return JSON.
Intermediate34 lessons - Available now
Learn JavaScript: Functions and Scope
Write reusable JavaScript functions: declarations, parameters and defaults, return values, helper functions, function expressions and arrow functions, then learn how scope decides where variables live and how to keep them tidy.
Beginner15 lessons - Available now
Building Interactive JavaScript Websites
Bring web pages to life with JavaScript: load scripts, work with the DOM tree, select and change elements, respond to clicks, typing and other events, and render pages from data with Handlebars templates.
Beginner19 lessons - Available now
Learn JavaScript: Asynchronous Programming
Write JavaScript that waits without freezing: setTimeout, promises, then, catch and finally, chaining, Promise.all, and modern async functions with await and try...catch.
Intermediate18 lessons - Available now
Learn JavaScript: Best Practices
Understand how JavaScript runs and write code that stays easy to change: hoisting, closures, currying, the event loop and memory management, then clean-code habits and the singleton, factory, observer and strategy patterns.
Intermediate13 lessons - Available now
Learn JavaScript: Requests
Talk to web APIs from JavaScript: how HTTP requests and responses work, JSON, GET and POST requests with fetch(), checking status codes, and request code with async and await, ending with a book club dashboard.
Intermediate8 lessons - Available now
Learn JavaScript: Iterators
Simplify loops with higher-order functions and array iterator methods: pass functions around, then use forEach, map, filter, find, findIndex, reduce, some and every, and combine them to moderate product reviews.
Beginner10 lessons - Available now
Learn TypeScript: Fundamentals
Start with TypeScript: what it adds to JavaScript, how the compiler checks code before it runs, type inference, type shapes, any, type annotations and strict compiler settings, ending with a bug hunt.
Beginner8 lessons - Available now
Learn JavaScript: Classes and Modules
Organize bigger programs: build objects from classes with constructors, methods, getters and setters, inheritance, static members and private fields, then split code into modules with the module pattern, CommonJS and ES modules.
Intermediate16 lessons - Available now
Learn JavaScript: Error Handling
Predict, handle and debug errors: read error messages and stack traces, recognize the built-in error types, find silent bugs with console.log(), throw and catch errors, write custom error classes, and get unstuck with documentation.
Intermediate9 lessons - Available now
Learn TypeScript: Functions
Type your functions: see what goes wrong in plain JavaScript, then add parameter annotations, optional and default parameters, inferred and explicit return types, void, and JSDoc comments, ending with a typed recipe scaler.
Intermediate10 lessons - Available now
Learn Intermediate TypeScript
Take TypeScript further: set it up with editors, tsc and tsconfig.json, type classes with access modifiers and readonly fields, narrow with type predicates and discriminated unions, and write generic classes and functions with defaults, constraints and keyof.
Intermediate23 lessons - Available now
Learn TypeScript: Complex Types
Type structured data: arrays, tuples, rest parameters and spread, enums, object types, type aliases, function types, and generic types and functions.
Intermediate16 lessons - Available now
Learn TypeScript: Object Types
Describe objects with interfaces: interfaces versus type aliases, classes that implement interfaces, nested and composed types, extending interfaces, index signatures and optional members.
Intermediate9 lessons - Available now
Learn TypeScript: Type Narrowing
Let TypeScript follow your checks: typeof and equality guards, the in operator, narrowing with else, and early returns, ending with a smart home command handler.
Intermediate7 lessons - Available now
OpenAI API Coding with JavaScript
Call a large language model from JavaScript: tokens and context windows, API keys and the client, chat completion requests and responses, then system messages, few-shot examples, conversation history, parameters, error handling, structured replies and the Responses API, ending with a trail journal assistant. Runs on a practice client, no network needed.
Intermediate18 lessons - Available now
Learn TypeScript: Union Types
Combine types with unions: accept several types, narrow with typeof, read inferred union return types, type mixed arrays, use common members, and restrict values with literal types.
Intermediate7 lessons
Paths with JavaScript courses
- Available now
Full-Stack Engineer
Cover the whole web stack, from HTML and React on the front end to Node, Express and SQL on the back end, plus security, testing and interview basics.
Beginner38 courses634 lessons - Available now
Front-End Engineer
Learn to build polished, accessible interfaces with HTML, CSS, JavaScript, React and Redux, and the tools around them.
Beginner26 courses475 lessons - Available now
Back-End Engineer
Build server-side applications with JavaScript, Node, Express and SQL, and learn the security, testing and DevOps habits that keep them running.
Beginner29 courses567 lessons - Available now
Create Video Games with Phaser.js
Learn JavaScript through game making, then build browser games with physics, animation and effects in Phaser.
Beginner8 courses183 lessons - Available now
Create a Back-End App with JavaScript
Learn modern JavaScript, then build an Express server backed by a SQL database.
Beginner7 courses113 lessons - Available now
Create a Front-End App with React
Learn the JavaScript you need for React, then build interactive front ends with components, state and API calls.
Beginner7 courses121 lessons
Planned courses
- Learn ExpressComing soon
- Learn Node-SQLiteComing soon
- Learn Node.js: Setting Up a ServerComing soon
- Learn Testing for Web Development: Model TestingComing soon
- Learn WebSocketsComing soon
- User Authentication & Authorization in ExpressComing soon
- Learn JavaScript Unit TestingComing soon
- Learn Intermediate TypeScript: Class TypesComing soon
- Learn Intermediate TypeScript: GenericsComing soon
- Learn Intermediate TypeScript: Type NarrowingComing soon
- Learn Testing for Web Development: Server TestingComing soon
- Learn Intermediate TypeScript: ConfigurationComing soon
- Learn Build ToolsComing soon
- Learn HandlebarsComing soon
- Learn JavaScript: Arrays and LoopsComing soon
- Learn JavaScript: ObjectsComing soon
- Learn Node.js: FundamentalsComing soon
- Technical Interview Practice with JavaScriptComing soon
- Learn Testing for Web DevelopmentComing soon
- Learn to Prevent Cross-Site Scripting with Node.jsComing soon
Reference
MDN JavaScript Guide
131 articles by Mozilla Contributors, with every example runnable.
Introduction
Control flow and error handling
Loops and iteration
Functions
Expressions and operators