Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is one situation where semicolons are important - when concatenating multiple script files & using IIFEs.

This subtlety is being obsoleted by ES modules & the build tooling around them, but it is a nasty bug that has sucked many an hour away from frontend devs whenever it is encountered.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: