JavaScript
47 cheat sheets
JavaScript#
A practical reference for JavaScript in Node.js and the browser — from running your first script to configuring a production-grade toolchain.
What’s in this section#
| Topic | Pages |
|---|---|
| Runtime | installation · node-runtime |
| Package managers | npm · npx · pnpm · yarn |
| Project config | package-json · modules |
| Async | async-await · promises · fetch |
| Language | array-methods · regex · errors |
| Tooling | eslint · prettier · vitest · vite |
Recommended reading order#
- Installation — install Node.js via nvm or the official installer
- Node runtime — the REPL, running scripts, environment variables
- npm — the default package manager; understand it before the alternatives
- package.json — the heart of every JavaScript project
- modules — CommonJS vs ESM; when to use each
- async-await and promises — the async model
- fetch — HTTP requests in modern JS and Node
- array-methods — map, filter, reduce, and friends
- eslint + prettier — linting and formatting
- vitest + vite — testing and bundling
[!TIP] If you are working in TypeScript rather than plain JavaScript, start with the TypeScript section after completing the Node and npm pages here.
no sheets match the selected filters