JavaScript Cheat Sheet
Core JavaScript syntax, functions, classes, modules, and everyday language patterns.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Basics and Syntax
## Control Flow
## Functions and Closures
## Sets, Maps, and Typed Data
## Classes and Prototypes
## Modules and Packaging
More in JavaScript
JavaScript Regex, JSON, and Date Cheat Sheet
Regular expressions, JSON parsing and serialization, dates, Intl formatting, math, and crypto helpers.
JavaScript Node.js Cheat Sheet
Node.js filesystem, HTTP, process, streams, events, child processes, and worker threads.
JavaScript DOM and Browser API Cheat Sheet
DOM selection, manipulation, browser events, storage, URL APIs, clipboard, observers, and forms.
JavaScript Async and Promises Cheat Sheet
Promises, async/await, fetch, timers, generators, async iterables, and event loop patterns.
JavaScript Arrays and Objects Cheat Sheet
Comprehensive array, object, collection, and string manipulation patterns in JavaScript.
Recommended next
TypeScript Utility Types and Recipes
TYPESCRIPT
Built-in utility types and practical application patterns.
TypeScript tsconfig and Tooling
TYPESCRIPT
tsconfig.json patterns, diagnostics, and project references.
TypeScript Classes and Modules
TYPESCRIPT
Classes, access modifiers, inheritance, modules, and validation boundaries.
TypeScript Functions and Narrowing
TYPESCRIPT
Function typing, overloads, control-flow narrowing, and async typing.
TypeScript Types and Generics
TYPESCRIPT
Advanced type operators, mapped types, conditional types, and utility types.
TypeScript Cheat Sheet
TYPESCRIPT
Core TypeScript syntax, typing patterns, and compiler commands.