Skip to content
jshacks.dev

Tag

cheat sheet

6 posts

Flat illustration of an editor window full of code, with the JavaScript, Node.js, Vite, npm and TypeScript logos.
Fundamentals

JavaScript Operators Cheat Sheet

A JavaScript operators cheat sheet with precedence, arithmetic, comparison, logical, nullish, bitwise and assignment operators, with exact Node.js 24 output.

6 min read
Flat illustration of a test report with one failing test, with the Node.js, GitHub Actions, Cypress and Jest logos.
Node.js

Node.js Built-In Modules Cheat Sheet

A quick reference to the Node.js built-in modules you reach for most, from fs and path to crypto, util and test, with runnable examples and exact output.

7 min read
Flat illustration of an editor window full of code, with the TypeScript, Node.js, npm and JavaScript logos.
TypeScript

TypeScript Cheat Sheet

A TypeScript 6 cheat sheet of daily syntax: basic types, unions, generics, narrowing, utility types, classes and the compiler flags worth turning on.

6 min read
Flat illustration of a browser and a server trading a request and a response, with the Google Chrome, NGINX, Postman and Swagger logos.
Browser

DOM Manipulation Cheat Sheet

A DOM manipulation cheat sheet: select, create, insert, move, remove, classes, attributes, data, styles, events, forms, scrolling and observers, with examples.

8 min read
Flat illustration of an editor window full of code, with the TypeScript, JavaScript, Vite, npm and Node.js logos.
TypeScript

Utility Types Cheat Sheet

Every built-in TypeScript 6 utility type with a one-line definition, a worked example and the case where it misleads you, from Partial and Pick to Awaited.

7 min read