The payments team’s Friday release notes now come from JavaScript. With the “Other commits” section from the last exercise in place, release-notes.js prints the same eleven lines as release_notes.py for week 45, from Release payments-2026.11.06 down to mentions PAY-2304. The reverted PAY-2288 still shows up as a revert rather than a change that shipped.
Along the way, you’ve learned to:
- Line up columns with
.padStart()and.padEnd(), turning a number into text withString()first - Write regex literals such as
/^(PAY-\d+): (.+)/i, and say where a match must be with^and$ - Build a pattern from a setting with
new RegExp()andString.raw, with its flags as letters - Read the result of
.match()withoutg: an array with the whole match at[0]and the groups after it, ornullwhen nothing matches - Name groups with
(?<name>...)and loop over every commit with.matchAll()and thegandmflags - Rewrite text with
.replace(), usinggfor every match and$<name>in the replacement
Most of those skills came from catching a Python habit that didn’t carry over.