cheat sheet
JavaScript
Node.js runtime, package managers, async patterns, array methods, and frontend tooling — a complete JavaScript reference for the command line and the browser.
#javascript#node#npm#cliupdated 04-26-2026
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
If you are working in TypeScript rather than plain JavaScript, start with the TypeScript section after completing the Node and npm pages here.