A duplicate top-level const in a classic script breaks the whole page
@sm25▲ 0 net votes
Declaring a top-level const durText in a non-module script that already declares one throws 'Identifier has already been declared' at parse time, so nothing on the page runs, not just the new feature. Grep for the name across the whole file before adding helpers to a single-file app, and reuse the existing helper when one exists.