JavaScript Complete Roadmap (Before React)
This PDF covers all JavaScript concepts you should master from basics to intermediate level before
starting React.
1. JavaScript Basics
● What is JavaScript & How it works
● Variables: var, let, const
● Data Types (Primitive & Non-Primitive)
● Type Coercion & Type Conversion
● Operators (Arithmetic, Comparison, Logical)
● Control Flow: if-else, switch
● Loops: for, while, do-while, for...of, for...in
2. Functions
● Function Declaration vs Function Expression
● Arrow Functions
● Parameters vs Arguments
● Default Parameters
● Return Statement
● IIFE (Immediately Invoked Function Expressions)
3. Scope & Execution Context
● Global Scope
● Function Scope
● Block Scope
● Lexical Scope
● Execution Context
● Call Stack
4. Hoisting & Strict Mode
● Hoisting of variables & functions
● Temporal Dead Zone
● use strict
5. Data Structures in JavaScript
● Arrays & Array Methods
● Objects & Object Methods
● Map, Set, WeakMap, WeakSet
6. Strings & Numbers
● String methods
● Template Literals
● Number methods
● Math object
7. Equality & Comparison
● == vs ===
● Object comparison
● Truthy & Falsy values
8. Closures
● What is Closure
● Practical use cases
9. This Keyword
● this in global scope
● this in functions
● this in objects
● this with arrow functions
10. Objects Deep Dive
● Object creation patterns
● Object destructuring
● Spread & Rest operators
11. Asynchronous JavaScript
● Synchronous vs Asynchronous
● Callbacks
● Promises
● Async / Await
● Error Handling (try/catch)
12. Event Loop & Concurrency
● Call Stack
● Web APIs
● Microtask Queue
● Macrotask Queue
● Event Loop working
13. DOM Manipulation
● Selecting elements
● Manipulating DOM
● Event Listeners
● Event Bubbling & Capturing
14. Browser APIs
● localStorage & sessionStorage
● Cookies
● Fetch API
● Timers (setTimeout, setInterval)
15. Modules & Tooling
● ES Modules (import/export)
● Bundlers overview
● Transpilers overview
16. Error Handling & Debugging
● Common JS errors
● Debugging using console & devtools
17. Memory Management
● Heap & Stack
● Garbage Collection
● Memory leaks
18. OOP in JavaScript
● Constructor functions
● Prototype
● Prototypal inheritance
● Classes & inheritance
19. Functional Programming Concepts
● Pure functions
● Immutability
● Higher-order functions
● Map, Filter, Reduce
20. Performance & Best Practices
● Code optimization
● Debouncing & Throttling
● Clean code practices
21. Must-Know Before React
● State vs Props concept (JS perspective)
● Immutability
● Async JS mastery
● Array & Object transformations