In June 2024, we held the 73rd edition of the “JavaScript the Language” meetup, where each month we dive into one of JavaScript’s features, some make you go, “Wait, it does what now?” We do this by writing tests, reading the specification, and running those tests – the programming equivalent of a workout that actually makes you stronger.
Here’s the plan: We start by brainstorming questions we can answer with code. Then, we write a test with a description so clear even your non-coding goldfish could follow it. Before we run this test, we open the ECMAScript specification, which is like the sacred scrolls of JavaScript knowledge, to see if our wild guess—I mean, hypothesis—is correct. For example, does "".at(-1)
return an empty string or undefined? (Spoiler alert: It’s a fun surprise every time!) This deep dive often leads us into the labyrinth of JavaScript’s inner workings, where we encounter delightful oddities and brilliant design choices. By the time we run the test, we’ve either confirmed our theory or had an existential crisis about how computers work, which we then call “learning”.
Join me in this session to experience the joy of team programming, the thrill of testing, and the sheer geeky pleasure of reading the spec. Even if you currently think testing is as exciting as watching paint dry, I promise you’ll leave with a newfound appreciation for it—or at least a few good laughs. Let’s embark on this adventure together and unlock the mysteries of how JavaScript ticks, one test at a time.