Skip to article content
FrontendXLearning path

JavaScript Foundations

Build a precise mental model of JavaScript values, scope, functions, objects, arrays and asynchronous behavior, then implement and debug real utilities from first principles instead of memorizing outputs.

beginner · 30 lessons · 180 exercises · about 1200 minutes

  • Predict
  • Explain
  • Implement
  • Debug
  • Test
  • Interview

What you will be able to do

#
  • Predict the output of JavaScript code from the language rules rather than from memory.
  • Explain scope, closures, prototypes, equality and the event loop with precise terminology.
  • Implement common utilities such as counters, memoizers, grouping helpers and async wrappers from first principles.
  • Debug type, scope, equality and asynchronous defects using evidence instead of guessing.
  • Connect each concept to verified FrontendX lessons and practice problems for further work.
  • Work with numbers, strings, regular expressions, dates and JSON without relying on coercion surprises.
  • Structure code with modules, destructuring, template literals and modern collection types.
  • Reason about the browser: the DOM, events, storage, network requests, workers and rendering performance.
  • Apply functional patterns, recursion, debouncing and testing discipline to real utilities.

Prerequisites

#

No prior course is required. This course starts from first principles.

Lessons

#
  1. Values, Types and Equality

    beginner · 35 minutes · 6 exercises

    Classify any JavaScript value as a primitive or an object.

  2. Variables, Scope and Hoisting

    beginner · 35 minutes · 6 exercises

    Distinguish function scope from block scope.

  3. Functions and Closures

    beginner · 40 minutes · 6 exercises

    Compare function declarations, function expressions and arrow functions.

  4. Objects, Prototypes and this

    intermediate · 45 minutes · 6 exercises

    Read and write object properties and explain property lookup.

  5. Arrays and Iteration

    intermediate · 40 minutes · 6 exercises

    Transform data with map, filter and reduce.

  6. Asynchronous JavaScript and the Event Loop

    intermediate · 45 minutes · 6 exercises

    Trace the order of synchronous code, microtasks and timer callbacks.

  7. Error Handling and Debugging

    intermediate · 40 minutes · 6 exercises

    Use try, catch and finally correctly.

  8. Advanced Objects: Descriptors, Proxy and Iterators

    advanced · 50 minutes · 6 exercises

    Inspect and control property behavior with descriptors.

  9. Numbers, Precision and BigInt

    beginner · 35 minutes · 6 exercises

    Explain why floating point arithmetic is inexact and compare safely.

  10. Strings and Unicode

    beginner · 35 minutes · 6 exercises

    Explain why string length counts UTF-16 code units rather than characters.

  11. Regular Expressions

    intermediate · 40 minutes · 6 exercises

    Read and write a pattern with the right flags for the task.

  12. Dates and Time

    intermediate · 35 minutes · 6 exercises

    Distinguish UTC from local time when reading and writing dates.

  13. JSON and Serialization

    intermediate · 35 minutes · 6 exercises

    Predict which values JSON.stringify keeps and which it drops.

  14. Modules and Imports

    intermediate · 40 minutes · 6 exercises

    Explain the difference between named and default exports.

  15. Destructuring, Spread and Rest

    intermediate · 35 minutes · 6 exercises

    Extract values from arrays and objects with defaults and renaming.

  16. Template Literals and Tagged Templates

    beginner · 30 minutes · 6 exercises

    Interpolate values and build multi-line strings with template literals.

  17. Map, Set and Weak Collections

    intermediate · 35 minutes · 6 exercises

    Choose between a plain object, a Map and a Set for a given task.

  18. Symbols and Well-Known Symbols

    advanced · 40 minutes · 6 exercises

    Create unique property keys with Symbol and explain their purpose.

  19. Getters, Setters and Property Descriptors

    advanced · 40 minutes · 6 exercises

    Define computed properties with getters and setters.

  20. Functional Programming and Currying

    intermediate · 45 minutes · 6 exercises

    Write pure functions and recognize where side effects belong.

  21. Recursion and Recursive Data

    intermediate · 45 minutes · 6 exercises

    Write a recursive function with a clear base case and progress toward it.

  22. Debounce and Throttle

    intermediate · 40 minutes · 6 exercises

    Explain the difference between debounce and throttle.

  23. The DOM and Events

    intermediate · 45 minutes · 6 exercises

    Select and update nodes safely without injecting markup.

  24. Browser Storage

    intermediate · 35 minutes · 6 exercises

    Choose between localStorage, sessionStorage, cookies, IndexedDB and the Cache API.

  25. Fetch and Network Requests

    intermediate · 45 minutes · 6 exercises

    Read a response correctly and detect HTTP errors.

  26. Web Workers and Main-Thread Offloading

    advanced · 40 minutes · 6 exercises

    Move CPU-heavy work off the main thread with a Worker.

  27. Performance and Memory

    advanced · 45 minutes · 6 exercises

    Measure before optimizing with the Performance API.

  28. Testing JavaScript

    intermediate · 45 minutes · 6 exercises

    Write deterministic unit tests with arrange, act and assert.

  29. this and Function Binding

    intermediate · 40 minutes · 6 exercises

    Predict this from the call site rather than the definition.

  30. Async Patterns and Promise Combinators

    advanced · 45 minutes · 6 exercises

    Choose between sequential and concurrent asynchronous work.

Study journeys

#

Skip-ahead journeys never remove a requirement. The prerequisite graph always reports the full chain; a skip-ahead course only marks where an assessment may substitute for study.

Frontend interview candidate

Developer preparing for frontend interviews

Combine language fluency, DSA reasoning and structured communication under interview constraints.

  1. JavaScript Foundationsskip by assessmentyou are here
  2. DSA from Zero
  3. Interview Communication

Next in this journey: DSA from Zero

Experienced learners may assess out of this course. The prerequisite requirements still apply.

Quality engineering track

QA or test automation engineer

Move from assertions to unit, component, API, integration and end-to-end gates, then wire them into delivery.

  1. JavaScript Foundationsskip by assessmentyou are here
  2. Testing and Quality Engineering
  3. CI/CD and Delivery Engineering
  4. Debugging and Code Review

Next in this journey: Testing and Quality Engineering

Experienced learners may assess out of this course. The prerequisite requirements still apply.

Advanced canonical resources

© 2026 FrontendX. All rights reserved.