Skip to content
📜

JavaScript Basics

50 lessons

Learn JavaScript from the beginning — variables, functions, arrays, objects, DOM, and async.

  1. 1

    JavaScript Overview

    What JavaScript is, where it runs, and why it is essential for modern web development.

  2. 2

    JavaScript Variables

    How to declare variables with let, const, and var, and the rules that govern them.

  3. 3

    JavaScript Data Types

    The primitive and reference types in JavaScript, and how typeof helps you inspect them.

  4. 4

    JavaScript Functions

    Function declarations, arrow functions, parameters, return values, and closures.

  5. 5

    JavaScript Arrays

    Creating, indexing, and iterating arrays, plus the essential map, filter, and reduce methods.

  6. 6

    JavaScript Objects

    Objects as key-value collections, property access, destructuring, and the spread operator.

  7. 7

    Conditions

    if/else, switch, ternary operator, truthy/falsy values, and short-circuit evaluation.

  8. 8

    Loops

    for, while, for...of, for...in, and how to break and continue iteration.

  9. 9

    DOM

    Selecting elements, handling events, and updating the page with the Document Object Model.

  10. 10

    Async JavaScript

    Callbacks, promises, async/await, and fetching data from APIs without blocking.

  11. 11

    JavaScript Strings

    Creating, slicing, searching, and transforming text with built-in string methods.

  12. 12

    JavaScript Numbers

    The single number type, arithmetic operators, floating-point pitfalls, and the Math object.

  13. 13

    Template Literals

    Backtick strings with variable interpolation, multiline text, and tagged templates.

  14. 14

    Destructuring Assignment

    Unpack values from arrays and objects into variables with concise, readable syntax.

  15. 15

    Spread and Rest Operators

    The ... syntax for expanding collections into elements and collecting elements into arrays.

  16. 16

    Arrow Functions

    Concise function syntax with implicit returns and lexical this binding for callbacks.

  17. 17

    Closures

    Functions that retain access to their lexical scope, enabling private state and factories.

  18. 18

    Prototypes and Inheritance

    The prototype chain, prototypal inheritance, and how objects link and share behavior.

  19. 19

    The this Keyword

    How this is determined by the call site: default, implicit, explicit, and new binding.

  20. 20

    JavaScript Classes

    ES6 class syntax for constructors, methods, inheritance, static members, and private fields.

  21. 21

    JavaScript Modules

    ES modules with import and export, named vs default exports, and dynamic imports.

  22. 22

    Promises in Depth

    Promise states, chaining, error propagation, and combinators like Promise.all and Promise.race.

  23. 23

    async/await in Depth

    Writing asynchronous code that reads top-to-bottom with async functions and the await keyword.

  24. 24

    Error Handling

    try/catch/finally, custom error types, and graceful recovery for sync and async failures.

  25. 25

    The Event Loop

    Call stack, task queue, microtasks, and how JavaScript schedules asynchronous work.

  26. 26

    Map, Filter, Reduce in Depth

    Mastering functional array transformation, filtering, and accumulation patterns.

  27. 27

    Set and Map

    Collection types for unique values and key-value pairs with any key type, not just strings.

  28. 28

    Symbols

    Unique, immutable identifiers used for hidden properties and well-known iteration protocols.

  29. 29

    Iterators and Generators

    The iteration protocol, custom iterables, generator functions, and lazy data sequences.

  30. 30

    JavaScript Best Practices

    Clean code conventions, immutability, modern ES features, and avoiding common footguns.

  31. 31

    Proxy and Reflect API

    A comprehensive guide to Proxy and Reflect API in JavaScript, covering core concepts, implementation details, and practical examples.

  32. 32

    WeakRef and FinalizationRegistry

    A comprehensive guide to WeakRef and FinalizationRegistry in JavaScript, covering core concepts, implementation details, and practical examples.

  33. 33

    SharedArrayBuffer and Atomics

    A comprehensive guide to SharedArrayBuffer and Atomics in JavaScript, covering core concepts, implementation details, and practical examples.

  34. 34

    Generator Functions Deep Dive

    A comprehensive guide to Generator Functions Deep Dive in JavaScript, covering core concepts, implementation details, and practical examples.

  35. 35

    Async Iterators and Generators

    A comprehensive guide to Async Iterators and Generators in JavaScript, covering core concepts, implementation details, and practical examples.

  36. 36

    Memory Management and V8 Garbage Collection

    A comprehensive guide to Memory Management and V8 Garbage Collection in JavaScript, covering core concepts, implementation details, and practical examples.

  37. 37

    Event Loop Microtasks vs Macrotasks

    A comprehensive guide to Event Loop Microtasks vs Macrotasks in JavaScript, covering core concepts, implementation details, and practical examples.

  38. 38

    Closures and Variable Capture

    A comprehensive guide to Closures and Variable Capture in JavaScript, covering core concepts, implementation details, and practical examples.

  39. 39

    Prototype Chain Internals

    A comprehensive guide to Prototype Chain Internals in JavaScript, covering core concepts, implementation details, and practical examples.

  40. 40

    The this Binding Rules

    A comprehensive guide to The this Binding Rules in JavaScript, covering core concepts, implementation details, and practical examples.

  41. 41

    Symbols and Hidden Properties

    A comprehensive guide to Symbols and Hidden Properties in JavaScript, covering core concepts, implementation details, and practical examples.

  42. 42

    Well-Known Symbols

    A comprehensive guide to Well-Known Symbols in JavaScript, covering core concepts, implementation details, and practical examples.

  43. 43

    Tagged Template Literals

    A comprehensive guide to Tagged Template Literals in JavaScript, covering core concepts, implementation details, and practical examples.

  44. 44

    Advanced Destructuring Patterns

    A comprehensive guide to Advanced Destructuring Patterns in JavaScript, covering core concepts, implementation details, and practical examples.

  45. 45

    Spread and Rest Parameters

    A comprehensive guide to Spread and Rest Parameters in JavaScript, covering core concepts, implementation details, and practical examples.

  46. 46

    Optional Chaining and Nullish Coalescing

    A comprehensive guide to Optional Chaining and Nullish Coalescing in JavaScript, covering core concepts, implementation details, and practical examples.

  47. 47

    Intl and Internationalization

    A comprehensive guide to Intl and Internationalization in JavaScript, covering core concepts, implementation details, and practical examples.

  48. 48

    Web Workers and Message Passing

    A comprehensive guide to Web Workers and Message Passing in JavaScript, covering core concepts, implementation details, and practical examples.

  49. 49

    Structured Clone Algorithm

    A comprehensive guide to Structured Clone Algorithm in JavaScript, covering core concepts, implementation details, and practical examples.

  50. 50

    Error Handling Patterns

    A comprehensive guide to Error Handling Patterns in JavaScript, covering core concepts, implementation details, and practical examples.

Completed: 0 / 500%

Learning Stages

Est. total: 14h 25m
  1. 1

    Foundation

    13 lessons · 2h 10m

    Build a solid foundation with the essential concepts and syntax.

    0/13
  2. Core

    13 lessons · 3h 15m

    Deepen your understanding with core patterns and common use cases.

    0/13
  3. Intermediate

    12 lessons · 4h

    Tackle intermediate topics and start combining concepts fluently.

    0/12
  4. Advanced

    12 lessons · 5h

    Master advanced techniques and apply them to real-world problems.

    0/12

Completion Standard

Complete 80% lessons, 60% exercises, and 50% projects to master this topic.

Overall0%
  • Lessons0 / 200%
  • Exercises0 / 1000%
  • Projects0 / 100%

Skill Assessment

0 / 20 mastered
0 mastered0 in progress20 not started
  • JS Syntax & VariablesFoundation
    0 / 5 lessons · 0%
  • JS Data StructuresCore
    0 / 5 lessons · 0%
  • JS FunctionsCore
    0 / 4 lessons · 0%
  • Async JavaScriptIntermediate
    0 / 4 lessons · 0%
  • JS OOPIntermediate
    0 / 3 lessons · 0%
  • JS ModulesIntermediate
    0 / 2 lessons · 0%
  • ES6+ FeaturesCore
    0 / 4 lessons · 0%
  • Advanced JS PatternsAdvanced
    0 / 3 lessons · 0%

+12 more skills

Recommended next: javascript-overview
20 remaining

Build real projects

Apply what you learned by building guided projects with starter code and solutions.

View projects

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors