Happy to say I caught this, although I would credit that as much to having taken a compilers course as any JS knowledge.
I'm not sure I understand why it's wrapped in an enclosing function, though; you can reproduce the error with just:
(() => console.log("Hello"))()
(() => console.log("World"))()