JavaScript
JavaScript Tutorial
Learn JavaScript from scratch: variables, operators, conditions, loops, functions, arrays, objects, the DOM and events, with code you can run and live examples in every lesson.
Start learning
60 lessons
Lessons
- JavaScript Introduction: What It Is and Your First Program
- JavaScript Variables and Data Types: let, const, typeof
- JavaScript Operators: Arithmetic, ===, Logical and ??
- JavaScript if, else and switch Statements (With Examples)
- JavaScript Loops: for, while, for…of and for…in
- JavaScript Functions: Declarations, Arrow Functions, Scope
- JavaScript Arrays and Array Methods: map, filter, reduce
- JavaScript Objects: Properties, Methods, Destructuring, JSON
- JavaScript DOM Tutorial: querySelector, textContent, classList
- JavaScript Events: addEventListener, Forms and Delegation
- JavaScript Strings and String Methods (With Examples)
- JavaScript Numbers and Math: Rounding, toFixed, Random
- JavaScript Date: Create, Format and Compare Dates
- JavaScript Classes: Constructor, Private Fields, extends
- JavaScript Error Handling: try, catch, finally and throw
- JavaScript Promises and async/await Explained
- JavaScript Fetch API: GET and POST JSON Requests
- JavaScript localStorage and sessionStorage Tutorial
- JavaScript Modules: import and export Explained
- JavaScript Project: Build a Quiz App Step by Step
- JavaScript Map and Set (with Examples)
- JavaScript Regular Expressions (RegExp) Tutorial
- The this Keyword in JavaScript: call, apply, bind and Arrow Functions
- JavaScript Prototypes and Prototypal Inheritance
- JavaScript Iterators and Generators (function*, yield)
- JavaScript Higher-Order Functions, Debounce and Throttle
- The JavaScript Event Loop: Call Stack, Tasks and Microtasks
- JavaScript Form Validation with Live Error Messages
- HTML Canvas with JavaScript: Drawing and Animation
- JavaScript Project: Build a To-Do List App with localStorage
- JavaScript Scope, Hoisting and Closures Explained
- JavaScript Destructuring, Spread and Rest Syntax
- JSON in JavaScript: JSON.parse and JSON.stringify
- JavaScript Timers: setTimeout, setInterval and sleep()
- JavaScript Type Conversion, Truthy/Falsy and == vs ===
- Sorting, Searching and Grouping Arrays in JavaScript
- JavaScript Object Methods: entries, freeze, getters and More
- JavaScript Intl: Format Numbers, Currency and Dates
- IntersectionObserver: Lazy Loading and Infinite Scroll
- JavaScript Project: Build an Expense Tracker
- Debugging JavaScript: console Methods and DevTools Breakpoints
- JavaScript DOM Traversal and Manipulation
- JavaScript Event Bubbling, Capturing and Delegation
- JavaScript URL and URLSearchParams: Read and Build Web Addresses
- JavaScript Getters and Setters
- JavaScript Drag and Drop: Lists and File Uploads
- Copying Objects in JavaScript: Shallow vs Deep Copy
- AbortController: Cancelling Fetch, Timers and Listeners
- ResizeObserver and MutationObserver in JavaScript
- JavaScript Project: Build a Kanban Board
- JavaScript Recursion
- JavaScript Currying and Function Composition
- JavaScript Proxy and Reflect
- JavaScript Symbols
- JavaScript Tagged Template Literals
- JavaScript Async Generators and for await
- JavaScript Set Methods: union, intersection and more
- JavaScript Custom Events and EventTarget
- JavaScript Keyboard Events and Shortcuts
- JavaScript Project: Search Autocomplete
