Free JavaScript Tutorials

25 free, hands-on JavaScript lessons from first lines of code to advanced patterns. Run every example directly in your browser — no install, no signup.

intermediate

Objects and Prototypes

Master JavaScript objects, the this keyword, and prototypal inheritance. Learn how JS shares behavior between objects under the hood.

22 min read
3 prerequisites

Closures and Scope

Understand JavaScript closures and scope. Learn lexical scoping, the module pattern, IIFEs, and practical closure patterns for data privacy.

24 min read
2 prerequisites

Async and Promises

Master asynchronous JavaScript with callbacks, Promises, and async/await. Learn to write non-blocking code and handle async errors.

26 min read
2 prerequisites

Error Handling

Learn JavaScript error handling with try/catch/finally, custom error classes, and defensive programming techniques for robust code.

20 min read
2 prerequisites

DOM and Events

Learn JavaScript DOM manipulation and event handling. Select elements, modify content, create dynamic pages, and respond to user actions.

24 min read
2 prerequisites

Classes And Inheritance

Learn JavaScript classes and inheritance. Build reusable blueprints with constructors, methods, static fields, and extends for OOP.

25 min read
3 prerequisites

Regular Expressions

Master regular expressions in JavaScript. Learn regex syntax, search and replace patterns, and practical validation techniques.

25 min read
3 prerequisites

Local Storage And State

Learn localStorage and sessionStorage to persist data in the browser. Manage simple application state without a framework.

25 min read
4 prerequisites

Date And Time

Master JavaScript's Date object to create, format, compare, and manipulate dates and times for building real-world applications.

25 min read
3 prerequisites

Form Validation

Learn client-side form validation with JavaScript. Cover built-in validation, custom rules, real-time feedback, and accessible errors.

25 min read
3 prerequisites