InterviewTreedInterviewTreed
All learning paths

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 learning

Variables 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 learning

var, let, and const

Understand the differences between var, let, and const, including scope, reassignment, redeclaration, hoisting behavior, and best practices for declaring variables.

Start learning

Operators and expressions

Explore arithmetic, assignment, logical, relational, bitwise, and conditional operators, along with expression evaluation and operator precedence.

Start learning

Type 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 learning

Equality and comparison operators

Understand strict and loose equality, relational comparisons, truthy and falsy values, and common comparison pitfalls involving different JavaScript data types.

Start learning

Conditional 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 learning

Functions and function expressions

Explore function declarations, function expressions, parameters, return values, default arguments, callbacks, and reusable function design in JavaScript.

Start learning

Arrow functions

Understand arrow function syntax, concise function expressions, implicit returns, lexical this binding, and situations where arrow functions differ from regular functions.

Start learning

Scope and lexical scope

Learn global, function, and block scope, along with lexical scope and how JavaScript resolves variable references through nested execution environments.

Start learning

Hoisting

Understand JavaScript hoisting behavior for variable declarations, function declarations, and classes, including how var, let, and const behave before initialization.

Start learning

Closures

Explore closures and how functions retain access to variables from their outer lexical environment, enabling private state, callbacks, and reusable function factories.

Start learning

Execution context

Understand how JavaScript creates and manages execution contexts, including the global context, function contexts, lexical environments, and call stack operations.

Start learning

The 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 learning

Call, apply, and bind

Understand how call, apply, and bind control function execution context, pass arguments, and create functions with a predefined this value.

Start learning

Objects 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 learning

Object destructuring

Explore object destructuring for extracting properties into variables, including aliases, default values, nested objects, and function parameter destructuring.

Start learning

Arrays 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 learning

Array destructuring

Learn how array destructuring extracts elements into variables, including default values, skipped positions, nested arrays, and rest elements.

Start learning

Spread 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 learning

Template literals

Learn how template literals simplify string creation through interpolation, multiline strings, expression evaluation, and tagged template functions.

Start learning

String and number methods

Explore JavaScript string and number methods for formatting, searching, replacing, parsing, rounding, conversion, and validating textual and numeric values.

Start learning

Map, 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 learning

Iterators and generators

Understand the JavaScript iteration protocol and how generator functions use yield to produce values lazily and control execution through iterable sequences.

Start learning

Prototypes and prototype inheritance

Learn how JavaScript prototypes enable property and method inheritance, prototype chains, constructor functions, and shared behavior between objects.

Start learning

Classes and inheritance

Explore JavaScript classes, constructors, instance methods, static members, inheritance using extends, and method overriding through the super keyword.

Start learning

Modules and imports/exports

Modules and imports/exports: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

ES6 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 learning

DOM 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 learning

Event handling and event delegation

Understand how JavaScript handles user interactions using event listeners and how event delegation manages events efficiently through parent elements.

Start learning

Event bubbling and capturing

Explore event propagation through capturing, target, and bubbling phases, including event.stopPropagation, event.preventDefault, and event delegation techniques.

Start learning

Promises

Learn how JavaScript Promises represent asynchronous operations using pending, fulfilled, and rejected states, along with then, catch, finally, and promise chaining.

Start learning

Async and await

Understand async and await syntax for writing asynchronous JavaScript, handling promise results, managing errors, and creating readable non-blocking workflows.

Start learning

Asynchronous JavaScript

Explore asynchronous programming concepts including callbacks, promises, async functions, timers, event-driven execution, and non-blocking operations.

Start learning

Event 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 learning

Microtasks and macrotasks

Learn the differences between microtasks and macrotasks, including Promise callbacks, queueMicrotask, timers, task scheduling, and event loop execution order.

Start learning

Fetch 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 learning

Error handling

Understand JavaScript error handling using try, catch, finally, throw, built-in error types, and custom errors for managing synchronous and asynchronous failures.

Start learning

JSON 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 learning

Local storage and session storage

Compare browser localStorage and sessionStorage for client-side data persistence, including storage operations, lifecycle, limitations, and security considerations.

Start learning

JavaScript memory management

Understand JavaScript memory allocation and management, including object references, memory lifecycles, heap usage, memory leaks, and resource cleanup.

Start learning

Garbage collection

Explore how JavaScript garbage collectors reclaim memory from unreachable objects, including reachability analysis, mark-and-sweep, and common causes of memory leaks.

Start learning

Debouncing 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 learning

JavaScript performance optimization

Explore JavaScript performance optimization techniques involving efficient algorithms, DOM updates, memory management, code splitting, lazy loading, and browser profiling.

Start learning

JavaScript 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 learning

TypeScript fundamentals

Learn TypeScript fundamentals, including static typing, interfaces, type annotations, compiler behavior, and how TypeScript improves JavaScript application maintainability.

Start learning

TypeScript 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 learning

Static typing and type inference

Explore TypeScript static typing and type inference, including explicit annotations, inferred types, compile-time checking, and detecting incompatible assignments.

Start learning

Primitive and custom types

Learn TypeScript primitive types and custom type definitions, including string, number, boolean, arrays, tuples, object types, and user-defined structures.

Start learning

Interfaces and type aliases

Compare interfaces and type aliases in TypeScript, including object shapes, extension, intersection types, declaration merging, and reusable type definitions.

Start learning

Union and intersection types

Understand union types for representing alternative values and intersection types for combining multiple type requirements into a single compatible type.

Start learning

Enums

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 learning

Generics

Explore TypeScript generics for creating reusable, type-safe functions, classes, interfaces, and data structures using type parameters and constraints.

Start learning

Type 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 learning

Type narrowing and guards

Learn how TypeScript narrows union types through typeof, instanceof, in checks, equality checks, discriminated unions, and custom type guard functions.

Start learning

Optional properties and readonly

Understand optional properties and readonly modifiers in TypeScript, including optional object fields, immutable property assignments, and interface-level restrictions.

Start learning

Function types

Explore TypeScript function types, including parameter annotations, return types, optional and default parameters, overloads, callbacks, and function signatures.

Start learning

Advanced 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 learning

Mapped 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 learning

Keyof 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 learning

Decorators

Understand TypeScript decorators as metadata and behavior extensions for classes and class members, including decorator syntax, configuration, and framework integration.

Start learning

Modules and namespaces

Compare TypeScript external modules and namespaces, including imports, exports, declaration organization, global scope management, and reusable code structures.

Start learning

TypeScript classes and inheritance

Learn how TypeScript supports object-oriented programming through classes, constructors, access modifiers, abstract classes, interfaces, inheritance, and method overriding.

Start learning

TypeScript with React

Explore how TypeScript integrates with React through typed components, props, state, events, hooks, context, refs, and reusable component interfaces.

Start learning

TypeScript with Node.js

TypeScript with Node.js: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

TypeScript 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 learning

JavaScript 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 learning

Practice & 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.

Browse 100 questions

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