JavaScript Tutorial: Free Course from Beginner to Advanced

Free course · Node.js 26 LTS · ES2026

Learn JavaScript from zero to job-ready

79 lessons that take you from your first console.log to async code, Node.js, the DOM, testing and real projects. Every lesson has runnable examples with real output, practice questions with answers, an MCQ quiz and interview questions.

79lessons
16modules
790quiz questions
100%free

How This Course Works

1. Read and run

Each concept has a plain definition and an example you run with Node.js. The output shown is the real output.

2. Practise

Solve 5 to 8 practice questions per lesson, then open the answer to check your code.

3. Quiz yourself

A 10-question MCQ quiz at the end of every lesson shows your score and explains each answer.

4. Prepare for interviews

Every lesson ends with interview questions and answers on that topic.

Your Learning Path

JavaScript Tutorial Syllabus

1

Module 1: Getting Started with JavaScript

What JavaScript is, how to install Node.js and VS Code, the ways to run code, the basic syntax and the console.

Beginner5 lessons
  1. 01What Is JavaScript?
  2. 02Install Node.js and VS Code
  3. 03Run JavaScript: Console, REPL, Files
  4. 04Syntax, Comments and Strict Mode
  5. 05Console Methods and Debugging Basics
2

Module 2: Variables and Data Types

Store values with let and const, learn every data type, convert between types and compare values safely.

Beginner6 lessons
  1. 06Variables: var, let, const
  2. 07Data Types
  3. 08Type Conversion and Coercion
  4. 09Numbers, Math and BigInt
  5. 10Truthy, Falsy and Equality
  6. 11Optional Chaining and Nullish Coalescing
3

Module 3: Operators and Control Flow

Operators, decisions with if and switch, every loop type, and how to break out of them.

Beginner5 lessons
  1. 12Operators
  2. 13if, else if, else
  3. 14switch Statement
  4. 15Loops
  5. 16break, continue and Labels
4

Module 4: Functions

Write reusable code: declarations, arrow functions, parameters, scope, closures, callbacks, this and recursion.

Beginner8 lessons
  1. 17Functions
  2. 18Arrow Functions
  3. 19Default, Rest and Spread Parameters
  4. 20Scope and Hoisting
  5. 21Closures
  6. 22Callbacks and Higher-Order Functions
  7. 23this, call, apply and bind
  8. 24Recursion
5

Module 5: Strings and Regular Expressions

Work with text: string methods, template literals and regular expressions.

Beginner3 lessons
  1. 25Strings and String Methods
  2. 26Template Literals
  3. 27Regular Expressions
6

Module 6: Arrays

Create and change arrays, use map, filter and reduce, destructure values, and sort and search data.

Intermediate5 lessons
  1. 28Arrays Basics
  2. 29Array Methods
  3. 30map, filter and reduce
  4. 31Destructuring and Spread
  5. 32Sorting and Searching Arrays
7

Module 7: Objects and Collections

Objects, object methods, JSON, Map and Set, and iterators and generators.

Intermediate5 lessons
  1. 33Objects
  2. 34Object Methods
  3. 35JSON and Deep Copy
  4. 36Map, Set, WeakMap, WeakSet
  5. 37Iterators and Generators
8

Module 8: Object-Oriented JavaScript

Prototypes, classes, inheritance, private fields and the four OOP principles.

Intermediate5 lessons
  1. 38Prototypes
  2. 39Classes
  3. 40Inheritance
  4. 41Getters, Setters, Private Fields
  5. 42OOP Principles
9

Module 9: Errors and Debugging

Handle errors with try/catch, create custom errors and debug in VS Code and Chrome DevTools.

Intermediate3 lessons
  1. 43Exception Handling
  2. 44Custom Errors
  3. 45Debugging in VS Code and DevTools
10

Module 10: Asynchronous JavaScript

The event loop, timers, promises, async/await and HTTP requests with fetch.

Intermediate6 lessons
  1. 46Event Loop Coming soon
  2. 47Callbacks and Timers Coming soon
  3. 48Promises Coming soon
  4. 49Promise.all, allSettled, race, any Coming soon
  5. 50Async/Await
  6. 51Fetch API Coming soon
11

Module 11: Modules, npm and Node.js

ES modules, npm and package.json, the file system, environment variables and code quality tools.

Advanced5 lessons
  1. 52ES Modules vs CommonJS Coming soon
  2. 53npm and package.json Coming soon
  3. 54File System and Path Coming soon
  4. 55Environment Variables Coming soon
  5. 56ESLint and Prettier Coming soon
12

Module 12: DOM and Browser

Select and change page elements, handle events, validate forms and use browser storage and APIs.

Advanced6 lessons
  1. 57DOM Manipulation Coming soon
  2. 58Events and Delegation Coming soon
  3. 59Forms and Validation Coming soon
  4. 60localStorage and Cookies Coming soon
  5. 61Browser APIs Coming soon
  6. 62Web Page Automation Basics Coming soon
13

Module 13: Modern and Advanced JavaScript

ES6 to ES2026 features, functional programming, dates, performance, design patterns and debounce/throttle.

Advanced6 lessons
  1. 63ES6 to ES2026 Features Coming soon
  2. 64Functional Programming Coming soon
  3. 65Dates, Times and Intl Coming soon
  4. 66Memory and Performance Coming soon
  5. 67Design Patterns Coming soon
  6. 68Debounce, Throttle, Memoize Coming soon
14

Module 14: Testing JavaScript

Unit tests with the built-in Node.js test runner, Jest and Vitest, and the bridge to Playwright.

Advanced3 lessons
  1. 69Node.js Test Runner Coming soon
  2. 70Jest and Vitest Coming soon
  3. 71From JavaScript to Playwright Coming soon
15

Module 15: Real-World Projects

Three projects that combine everything: a browser app, a Node.js CLI and an API checker.

Projects & Career3 lessons
  1. 72Project: To-Do App Coming soon
  2. 73Project: Node.js CLI Coming soon
  3. 74Project: API Checker Coming soon
16

Module 16: Interview Preparation

Scenario-based interview questions from fresher to senior, coding programs and a one-page cheat sheet.

Projects & Career5 lessons
  1. 75Interview Questions: Freshers Coming soon
  2. 76Interview Questions: 3-5 Years Coming soon
  3. 77Interview Questions: Senior Coming soon
  4. 78Coding Interview Programs Coming soon
  5. 79JavaScript Cheat Sheet Coming soon

Who This Course Is For

  • Complete beginners who have never written code.
  • Manual testers moving into automation with Playwright, Cypress or WebdriverIO.
  • Students preparing for JavaScript developer or SDET interviews.
  • Developers from Python or Java who want to learn modern JavaScript quickly.

What You Need

  • A computer with Windows, macOS or Linux.
  • Node.js (the course uses Node.js 26 LTS) and VS Code, both free. Lesson 2 shows how to install them.
  • A modern browser such as Chrome, Edge or Firefox.
  • About 1 hour a day.

JavaScript Course FAQs

Is this JavaScript tutorial free?

Yes. Every lesson, example, practice question, quiz and interview question in this JavaScript course is free to read on SQA Tools.

Do I need any programming experience?

No. The course starts with what JavaScript is and how to install it, and each lesson only uses what earlier lessons taught.

Which JavaScript version does the course teach?

Modern JavaScript up to ECMAScript 2026, run with Node.js 26 LTS. Examples were checked on 2026-11-23.

How long does it take to finish?

At 1 to 2 hours a day, most learners finish the beginner modules in 3 to 4 weeks and the whole course, including projects, in about 2 to 3 months.

Do I need to learn JavaScript before Playwright?

You need the basics: variables, functions, arrays, objects and async/await. Modules 1 to 10 cover all of it, and lesson 71 connects JavaScript to Playwright.

Can I run the examples in the browser instead of Node.js?

Most examples run in both. Lessons that use Node.js-only features such as the file system say so, and the DOM lessons run in the browser.

More Free Resources