The Worst JavaScript I Ever Wrote

Revisiting some code I wrote for a job interview in 2018.