Programming & Frameworks
JavaScript & TypeScript
Prepare for modern JavaScript and TypeScript development, including language fundamentals, asynchronous programming, DOM manipulation, advanced concepts, and type-safe application development.
Your learning roadmap
Explore the key concepts
Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.
JavaScript fundamentals
Understand the foundations of JavaScript, including its syntax, execution model, language features, and role in building interactive web applications and backend services.
Start learningVariables and data types
Learn how JavaScript stores and represents data using variables and types such as strings, numbers, booleans, undefined, null, objects, and symbols.
Start learningvar, let, and const
Understand the differences between var, let, and const, including scope, reassignment, redeclaration, hoisting behavior, and best practices for declaring variables.
Start learningOperators and expressions
Explore arithmetic, assignment, logical, relational, bitwise, and conditional operators, along with expression evaluation and operator precedence.
Start learningType coercion and type conversion
Learn how JavaScript automatically converts values between types and how explicit conversions using Number, String, Boolean, and other methods affect program behavior.
Start learningEquality and comparison operators
Understand strict and loose equality, relational comparisons, truthy and falsy values, and common comparison pitfalls involving different JavaScript data types.
Start learningConditional statements and loops
Learn how to control program flow using if-else, switch, ternary expressions, for, while, do-while, for...in, and for...of loops.
Start learningFunctions and function expressions
Explore function declarations, function expressions, parameters, return values, default arguments, callbacks, and reusable function design in JavaScript.
Start learningArrow functions
Understand arrow function syntax, concise function expressions, implicit returns, lexical this binding, and situations where arrow functions differ from regular functions.
Start learningScope and lexical scope
Learn global, function, and block scope, along with lexical scope and how JavaScript resolves variable references through nested execution environments.
Start learningHoisting
Understand JavaScript hoisting behavior for variable declarations, function declarations, and classes, including how var, let, and const behave before initialization.
Start learningClosures
Explore closures and how functions retain access to variables from their outer lexical environment, enabling private state, callbacks, and reusable function factories.
Start learningExecution context
Understand how JavaScript creates and manages execution contexts, including the global context, function contexts, lexical environments, and call stack operations.
Start learningThe this keyword
Learn how the this keyword is determined by function invocation, including global context, object methods, constructors, classes, arrow functions, and explicit binding.
Start learningCall, apply, and bind
Understand how call, apply, and bind control function execution context, pass arguments, and create functions with a predefined this value.
Start learningObjects and object properties
Learn how JavaScript objects store key-value pairs and how to create, access, update, delete, enumerate, and define properties using different object APIs.
Start learningObject destructuring
Explore object destructuring for extracting properties into variables, including aliases, default values, nested objects, and function parameter destructuring.
Start learningArrays and array methods
Understand JavaScript arrays and common methods such as map, filter, reduce, find, some, every, slice, splice, and sorting for transforming collections.
Start learningArray destructuring
Learn how array destructuring extracts elements into variables, including default values, skipped positions, nested arrays, and rest elements.
Start learningSpread and rest operators
Understand how spread syntax expands arrays and objects while rest syntax collects remaining values, supporting copying, merging, function arguments, and destructuring.
Start learningTemplate literals
Learn how template literals simplify string creation through interpolation, multiline strings, expression evaluation, and tagged template functions.
Start learningString and number methods
Explore JavaScript string and number methods for formatting, searching, replacing, parsing, rounding, conversion, and validating textual and numeric values.
Start learningMap, Set, WeakMap, and WeakSet
Compare Map, Set, WeakMap, and WeakSet collections, including key uniqueness, object references, iteration support, memory behavior, and common application use cases.
Start learningIterators and generators
Understand the JavaScript iteration protocol and how generator functions use yield to produce values lazily and control execution through iterable sequences.
Start learningPrototypes and prototype inheritance
Learn how JavaScript prototypes enable property and method inheritance, prototype chains, constructor functions, and shared behavior between objects.
Start learningClasses and inheritance
Explore JavaScript classes, constructors, instance methods, static members, inheritance using extends, and method overriding through the super keyword.
Start learningModules and imports/exports
Modules and imports/exports: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningES6 and modern JavaScript features
Explore modern JavaScript features introduced through ES6 and later releases, including destructuring, arrow functions, modules, promises, classes, and newer syntax improvements.
Start learningDOM manipulation
Learn how JavaScript interacts with the Document Object Model to select elements, modify content and styles, create nodes, update attributes, and manipulate page structure.
Start learningEvent handling and event delegation
Understand how JavaScript handles user interactions using event listeners and how event delegation manages events efficiently through parent elements.
Start learningEvent bubbling and capturing
Explore event propagation through capturing, target, and bubbling phases, including event.stopPropagation, event.preventDefault, and event delegation techniques.
Start learningPromises
Learn how JavaScript Promises represent asynchronous operations using pending, fulfilled, and rejected states, along with then, catch, finally, and promise chaining.
Start learningAsync and await
Understand async and await syntax for writing asynchronous JavaScript, handling promise results, managing errors, and creating readable non-blocking workflows.
Start learningAsynchronous JavaScript
Explore asynchronous programming concepts including callbacks, promises, async functions, timers, event-driven execution, and non-blocking operations.
Start learningEvent loop and concurrency model
Understand the JavaScript event loop, call stack, task queues, and asynchronous callbacks, including how the runtime coordinates execution without blocking the main thread.
Start learningMicrotasks and macrotasks
Learn the differences between microtasks and macrotasks, including Promise callbacks, queueMicrotask, timers, task scheduling, and event loop execution order.
Start learningFetch API and HTTP requests
Explore the Fetch API for making HTTP requests, handling responses, parsing JSON, configuring headers and methods, and managing network and HTTP errors.
Start learningError handling
Understand JavaScript error handling using try, catch, finally, throw, built-in error types, and custom errors for managing synchronous and asynchronous failures.
Start learningJSON handling
Learn how to convert JavaScript objects into JSON using JSON.stringify and reconstruct objects using JSON.parse, including serialization limitations and error handling.
Start learningLocal storage and session storage
Compare browser localStorage and sessionStorage for client-side data persistence, including storage operations, lifecycle, limitations, and security considerations.
Start learningJavaScript memory management
Understand JavaScript memory allocation and management, including object references, memory lifecycles, heap usage, memory leaks, and resource cleanup.
Start learningGarbage collection
Explore how JavaScript garbage collectors reclaim memory from unreachable objects, including reachability analysis, mark-and-sweep, and common causes of memory leaks.
Start learningDebouncing and throttling
Learn debouncing and throttling techniques for controlling how frequently functions execute during events such as typing, scrolling, resizing, and repeated user interactions.
Start learningJavaScript performance optimization
Explore JavaScript performance optimization techniques involving efficient algorithms, DOM updates, memory management, code splitting, lazy loading, and browser profiling.
Start learningJavaScript security fundamentals
Understand JavaScript security risks and protection techniques, including XSS prevention, safe DOM manipulation, secure data handling, dependency security, and browser security policies.
Start learningTypeScript fundamentals
Learn TypeScript fundamentals, including static typing, interfaces, type annotations, compiler behavior, and how TypeScript improves JavaScript application maintainability.
Start learningTypeScript installation and configuration
Understand how to install TypeScript, configure the compiler, initialize projects, execute compilation, and integrate TypeScript with Node.js and frontend development tools.
Start learningStatic typing and type inference
Explore TypeScript static typing and type inference, including explicit annotations, inferred types, compile-time checking, and detecting incompatible assignments.
Start learningPrimitive and custom types
Learn TypeScript primitive types and custom type definitions, including string, number, boolean, arrays, tuples, object types, and user-defined structures.
Start learningInterfaces and type aliases
Compare interfaces and type aliases in TypeScript, including object shapes, extension, intersection types, declaration merging, and reusable type definitions.
Start learningUnion and intersection types
Understand union types for representing alternative values and intersection types for combining multiple type requirements into a single compatible type.
Start learningEnums
Learn how TypeScript enums define named constant sets, including numeric and string enums, reverse mappings, and alternatives such as const objects and union types.
Start learningGenerics
Explore TypeScript generics for creating reusable, type-safe functions, classes, interfaces, and data structures using type parameters and constraints.
Start learningType assertions
Understand how TypeScript type assertions communicate a more specific type to the compiler, including angle-bracket and as syntax and their runtime limitations.
Start learningType narrowing and guards
Learn how TypeScript narrows union types through typeof, instanceof, in checks, equality checks, discriminated unions, and custom type guard functions.
Start learningOptional properties and readonly
Understand optional properties and readonly modifiers in TypeScript, including optional object fields, immutable property assignments, and interface-level restrictions.
Start learningFunction types
Explore TypeScript function types, including parameter annotations, return types, optional and default parameters, overloads, callbacks, and function signatures.
Start learningAdvanced types and utility types
Learn advanced TypeScript types and built-in utilities such as Partial, Required, Pick, Omit, Record, Exclude, Extract, ReturnType, and Parameters.
Start learningMapped and conditional types
Understand mapped types for transforming object properties and conditional types for selecting types based on compile-time relationships and type constraints.
Start learningKeyof and typeof operators
Explore keyof for extracting object property keys and typeof for obtaining types from existing values, enabling reusable and strongly typed application logic.
Start learningDecorators
Understand TypeScript decorators as metadata and behavior extensions for classes and class members, including decorator syntax, configuration, and framework integration.
Start learningModules and namespaces
Compare TypeScript external modules and namespaces, including imports, exports, declaration organization, global scope management, and reusable code structures.
Start learningTypeScript classes and inheritance
Learn how TypeScript supports object-oriented programming through classes, constructors, access modifiers, abstract classes, interfaces, inheritance, and method overriding.
Start learningTypeScript with React
Explore how TypeScript integrates with React through typed components, props, state, events, hooks, context, refs, and reusable component interfaces.
Start learningTypeScript with Node.js
TypeScript with Node.js: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningTypeScript compiler and tsconfig
Understand the TypeScript compiler and tsconfig.json options, including target versions, module resolution, strict mode, path aliases, declaration files, and build configuration.
Start learningJavaScript and TypeScript testing
Explore JavaScript and TypeScript testing using frameworks such as Jest, Vitest, and testing libraries, including assertions, mocks, fixtures, and test execution.
Start learningPractice & revise
Interview questions
Practice interview questions with answers, key points, and practical examples.
Test your knowledge
Explore 100 questions for this topic, covering concepts, practical examples, and interview scenarios.
Keep learning step by step
Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.
Explore another learning path