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.
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
#Values, Types and Equality
beginner · 35 minutes · 6 exercises
Classify any JavaScript value as a primitive or an object.
Variables, Scope and Hoisting
beginner · 35 minutes · 6 exercises
Distinguish function scope from block scope.
Functions and Closures
beginner · 40 minutes · 6 exercises
Compare function declarations, function expressions and arrow functions.
Objects, Prototypes and this
intermediate · 45 minutes · 6 exercises
Read and write object properties and explain property lookup.
Arrays and Iteration
intermediate · 40 minutes · 6 exercises
Transform data with map, filter and reduce.
Asynchronous JavaScript and the Event Loop
intermediate · 45 minutes · 6 exercises
Trace the order of synchronous code, microtasks and timer callbacks.
Error Handling and Debugging
intermediate · 40 minutes · 6 exercises
Use try, catch and finally correctly.
Advanced Objects: Descriptors, Proxy and Iterators
advanced · 50 minutes · 6 exercises
Inspect and control property behavior with descriptors.
Numbers, Precision and BigInt
beginner · 35 minutes · 6 exercises
Explain why floating point arithmetic is inexact and compare safely.
Strings and Unicode
beginner · 35 minutes · 6 exercises
Explain why string length counts UTF-16 code units rather than characters.
Regular Expressions
intermediate · 40 minutes · 6 exercises
Read and write a pattern with the right flags for the task.
Dates and Time
intermediate · 35 minutes · 6 exercises
Distinguish UTC from local time when reading and writing dates.
JSON and Serialization
intermediate · 35 minutes · 6 exercises
Predict which values JSON.stringify keeps and which it drops.
Modules and Imports
intermediate · 40 minutes · 6 exercises
Explain the difference between named and default exports.
Destructuring, Spread and Rest
intermediate · 35 minutes · 6 exercises
Extract values from arrays and objects with defaults and renaming.
Template Literals and Tagged Templates
beginner · 30 minutes · 6 exercises
Interpolate values and build multi-line strings with template literals.
Map, Set and Weak Collections
intermediate · 35 minutes · 6 exercises
Choose between a plain object, a Map and a Set for a given task.
Symbols and Well-Known Symbols
advanced · 40 minutes · 6 exercises
Create unique property keys with Symbol and explain their purpose.
Getters, Setters and Property Descriptors
advanced · 40 minutes · 6 exercises
Define computed properties with getters and setters.
Functional Programming and Currying
intermediate · 45 minutes · 6 exercises
Write pure functions and recognize where side effects belong.
Recursion and Recursive Data
intermediate · 45 minutes · 6 exercises
Write a recursive function with a clear base case and progress toward it.
Debounce and Throttle
intermediate · 40 minutes · 6 exercises
Explain the difference between debounce and throttle.
The DOM and Events
intermediate · 45 minutes · 6 exercises
Select and update nodes safely without injecting markup.
Browser Storage
intermediate · 35 minutes · 6 exercises
Choose between localStorage, sessionStorage, cookies, IndexedDB and the Cache API.
Fetch and Network Requests
intermediate · 45 minutes · 6 exercises
Read a response correctly and detect HTTP errors.
Web Workers and Main-Thread Offloading
advanced · 40 minutes · 6 exercises
Move CPU-heavy work off the main thread with a Worker.
Performance and Memory
advanced · 45 minutes · 6 exercises
Measure before optimizing with the Performance API.
Testing JavaScript
intermediate · 45 minutes · 6 exercises
Write deterministic unit tests with arrange, act and assert.
this and Function Binding
intermediate · 40 minutes · 6 exercises
Predict this from the call site rather than the definition.
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.
Zero to frontend engineer
Absolute beginner frontend developer
Start from markup and the language, then build and ship a React and Next.js interface.
- HTML and CSS Foundations
- JavaScript Foundationsyou are here
- React and UI Engineering
- Next.js App Router Mastery
Next in this journey: React and UI Engineering
Frontend interview candidate
Developer preparing for frontend interviews
Combine language fluency, DSA reasoning and structured communication under interview constraints.
- JavaScript Foundationsskip by assessmentyou are here
- DSA from Zero
- Interview Communication
Next in this journey: DSA from Zero
Experienced learners may assess out of this course. The prerequisite requirements still apply.
Advanced canonical resources
Backend and API engineer
Backend or full-stack API developer
Build a Node API over SQL and MongoDB, then operate and deliver it safely.
- JavaScript Foundationsskip by assessmentyou are here
- Backend, APIs and Databases
- DevOps Foundations
- CI/CD and Delivery Engineering
Next in this journey: Backend, APIs and Databases
Experienced learners may assess out of this course. The prerequisite requirements still apply.
Advanced canonical resources
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.
- JavaScript Foundationsskip by assessmentyou are here
- Testing and Quality Engineering
- CI/CD and Delivery Engineering
- 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
AI product engineer
Product engineer adding LLM features
Ship grounded, evaluated AI features on top of a real backend without leaking data or keys.
- JavaScript Foundationsskip by assessmentyou are here
- AI Engineering
- Backend, APIs and Databases
Next in this journey: AI Engineering
Experienced learners may assess out of this course. The prerequisite requirements still apply.