Comments on: Just a Semicolon https://frontendmasters.com/blog/just-a-semicolon/ Helping Your Journey to Senior Developer Sun, 03 Aug 2025 07:29:33 +0000 hourly 1 https://wordpress.org/?v=6.9 By: toastal https://frontendmasters.com/blog/just-a-semicolon/#comment-36092 Sun, 03 Aug 2025 07:29:33 +0000 https://frontendmasters.com/blog/?p=6680#comment-36092 If you do return & then a newline with your return value, you also get an issue of returning nothing. You need to be aware of ASI’s rules regardless—which is why IIFEs have prefixed with ;(function… for the longest time as an ad-hoc ‘standard’. Once you know the rules, you may as well omit those extra characters except where needed, like here.

]]>