Posts
JavaScript Basics: Copy Nested Data with structuredClone
Copying an object can still leave its nested data shared with the original. This tutorial compares a shallow copy with structuredClone(), then checks supported data types and a …
October 17, 2026
JavaScript Basics: Combine Tasks with Promise.all and Promise.allSettled
A promise represents an eventual result. When several independent tasks belong together, you can collect their promises and wait for the group. This tutorial compares an …
October 17, 2026
JavaScript Basics: Calculate Exact Integers with BigInt
A counter can grow beyond the range where ordinary JavaScript numbers represent every integer exactly. This tutorial uses BigInt to increase a large counter, divide whole …
October 17, 2026
JavaScript Basics: Extract Text With Regular Expressions
A log line might contain a ticket number, a status, and a short message. A regular expression can describe the text we want to extract without splitting every line at fixed …
October 16, 2026
JavaScript Basics: UTF-8, Hex, and Base64 with Buffers
A Node.js Buffer holds bytes. Use it when text needs an encoding or when data isn’t text at all. These examples were tested on Linux with Node.js v24.19.0 and use only built-in …
October 16, 2026
JavaScript Basics: Working with Paths in Node.js
Use Node’s built-in node:path module to assemble paths and extract filenames. These examples run on Linux with Node.js v24.19.0. No packages are needed. Set up a scratch directory …
October 16, 2026
JavaScript Basics: Validate Numbers from Text
A text field containing 12 still holds text. Before doing arithmetic, decide which inputs are acceptable, convert them, and check the result. This tutorial builds a finite-number …
October 16, 2026
JavaScript Basics: Clean, Search, and Split Strings
Text often needs a little preparation before a program can use it. This tutorial covers trimming whitespace, finding text, splitting fields, and replacing repeated text. It also …
October 16, 2026
JavaScript Basics: Validate Environment Variables in Node.js
Environment variables let you configure a program when you launch it. A setting that looks like a number or boolean still arrives as text, so checking it early prevents confusing …
October 14, 2026
JavaScript Basics: Test Small Functions With Node's Built-in Runner
A function can look correct and still mishandle an empty input or a boundary value. Automated tests turn those expectations into checks you can repeat after every change. This …
October 14, 2026