Skip to content

Comment on Semicolons in JavaScript are optional

Comments

I use semicolons, and a linter to let me know when I miss them, because IE pukes all over itself if I don't. Same with trailing commas, IE HATES those.

Article ignores reality.

I'd like to see an example of IE breaking without semi-colons. I've never seen that happen before. (I have seen the issue w/ commas though)

Why the downvote? A google search didn't turn up anything about a IE-only lack of conformance to the spec regarding semicolons.

If you've seen code that breaks only IE because of a missing semicolon, please share.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.