Sep 29, 2023
I'm not a JS programmer, except we are all JS programmers sometime.
I knew about the semicolon issue over a decade ago, though I didn't get the puzzle!, and when I write JS, I put semicolons for the end of each line, simply so I don't have to reason through a puzzle for each line to see if the semicolon is needed.
What's interesting is this - when I get the code reviewed, junior engineers always tell me to get rid of some of the semicolons that aren't necessarily, and senior engineers (like myself - I've been doing this for 40 years!) never ever do and often correct the juniors.
Belt and suspenders!
Thanks for the diversion, accept claps.