Reading history
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

  1. JavaScript Introduction: What It Is and Your First Program
  2. JavaScript Variables and Data Types: let, const, typeof
  3. JavaScript Operators: Arithmetic, ===, Logical and ??
  4. JavaScript if, else and switch Statements (With Examples)
  5. JavaScript Loops: for, while, for…of and for…in
  6. JavaScript Functions: Declarations, Arrow Functions, Scope
  7. JavaScript Arrays and Array Methods: map, filter, reduce
  8. JavaScript Objects: Properties, Methods, Destructuring, JSON
  9. JavaScript DOM Tutorial: querySelector, textContent, classList
  10. JavaScript Events: addEventListener, Forms and Delegation
  11. JavaScript Strings and String Methods (With Examples)
  12. JavaScript Numbers and Math: Rounding, toFixed, Random
  13. JavaScript Date: Create, Format and Compare Dates
  14. JavaScript Classes: Constructor, Private Fields, extends
  15. JavaScript Error Handling: try, catch, finally and throw
  16. JavaScript Promises and async/await Explained
  17. JavaScript Fetch API: GET and POST JSON Requests
  18. JavaScript localStorage and sessionStorage Tutorial
  19. JavaScript Modules: import and export Explained
  20. JavaScript Project: Build a Quiz App Step by Step
  21. JavaScript Map and Set (with Examples)
  22. JavaScript Regular Expressions (RegExp) Tutorial
  23. The this Keyword in JavaScript: call, apply, bind and Arrow Functions
  24. JavaScript Prototypes and Prototypal Inheritance
  25. JavaScript Iterators and Generators (function*, yield)
  26. JavaScript Higher-Order Functions, Debounce and Throttle
  27. The JavaScript Event Loop: Call Stack, Tasks and Microtasks
  28. JavaScript Form Validation with Live Error Messages
  29. HTML Canvas with JavaScript: Drawing and Animation
  30. JavaScript Project: Build a To-Do List App with localStorage
  31. JavaScript Scope, Hoisting and Closures Explained
  32. JavaScript Destructuring, Spread and Rest Syntax
  33. JSON in JavaScript: JSON.parse and JSON.stringify
  34. JavaScript Timers: setTimeout, setInterval and sleep()
  35. JavaScript Type Conversion, Truthy/Falsy and == vs ===
  36. Sorting, Searching and Grouping Arrays in JavaScript
  37. JavaScript Object Methods: entries, freeze, getters and More
  38. JavaScript Intl: Format Numbers, Currency and Dates
  39. IntersectionObserver: Lazy Loading and Infinite Scroll
  40. JavaScript Project: Build an Expense Tracker
  41. Debugging JavaScript: console Methods and DevTools Breakpoints
  42. JavaScript DOM Traversal and Manipulation
  43. JavaScript Event Bubbling, Capturing and Delegation
  44. JavaScript URL and URLSearchParams: Read and Build Web Addresses
  45. JavaScript Getters and Setters
  46. JavaScript Drag and Drop: Lists and File Uploads
  47. Copying Objects in JavaScript: Shallow vs Deep Copy
  48. AbortController: Cancelling Fetch, Timers and Listeners
  49. ResizeObserver and MutationObserver in JavaScript
  50. JavaScript Project: Build a Kanban Board
  51. JavaScript Recursion
  52. JavaScript Currying and Function Composition
  53. JavaScript Proxy and Reflect
  54. JavaScript Symbols
  55. JavaScript Tagged Template Literals
  56. JavaScript Async Generators and for await
  57. JavaScript Set Methods: union, intersection and more
  58. JavaScript Custom Events and EventTarget
  59. JavaScript Keyboard Events and Shortcuts
  60. JavaScript Project: Search Autocomplete