2025-08

Learning web development: Arrays in JavaScript

[2025-08-18] dev, javascript, learning web dev

In this chapter we look at one way of storing more than one value in a variable: arrays.

Learning web development: Strings and methods in JavaScript

[2025-08-17] dev, javascript, learning web dev

In the last chapter, we worked with numbers. In this chapter, we’ll work with text and write our first applications.

Learning web development: Numbers, variables, functions in JavaScript

[2025-08-15] dev, javascript, learning web dev

In this chapter, we take the very first steps with JavaScript and learn about numbers, variables and functions.

New series of blog posts: learning web development

[2025-08-14] dev, javascript, learning web dev

This blog post provides an overview of my new series of blog posts called “Learning web development”.

2025-06

Ecma International approves ECMAScript 2025: What’s new?

[2025-06-26] dev, javascript, es2025

On 25 June 2025, the 129th Ecma General Assembly approved the ECMAScript 2025 language specification (press release, GitHub release), which means that it’s officially a standard now.

This blog post explains what’s new.

Tips for making regular expressions easier to use in JavaScript

[2025-06-24] dev, javascript

In this blog post, we explore ways in which we can make regular expressions easier to use.

TypeScript: checking Map keys and Array indices

[2025-06-21] dev, typescript

JavaScript has two common patterns:

  • Maps: We check the existence of a key via .has() before retrieving the associated value via .get().
  • Arrays: We check the length of an Array before performing an indexed access.

These patterns don’t work as well in TypeScript. This blog post explains why and presents alternatives.

How TypeScript solved its global Iterator name clash

[2025-06-18] dev, typescript

In ECMAScript 2025, JavaScript gets a class Iterator with iterator helper methods. This class conflicts with TypeScript’s existing types for iterators. In this blog post, we explore why that is and how TypeScript solves that conflict.

2025-05

Styling console text in Node.js

[2025-05-15] dev, javascript, nodejs

In this blog post, we explore how we can style text that we log to the console in Node.js.

Some of the examples use a Unix shell but most of the code should also work on Windows.

2025-04

Converting values to strings in JavaScript has pitfalls

[2025-04-29] dev, javascript

Converting values to strings in JavaScript is more complicated than it might seem:

  • Most approaches have values they can’t handle.
  • We don’t always see all of the data.