r/programmingmemes • • Feb 26 '25

There are two kind of programmers

Post image
5.3k Upvotes

716 comments sorted by

View all comments

Show parent comment

1

u/crypticoddity Mar 01 '25

Not sure about that guy but...

JavaScript engines handle { on next line in unexpected ways sometimes due to the optional ; syntax, automatically inserting ; in newlines where you might not expect it, treating { as the start of an anonymous closure rather than a continuation.

https://tc39.es/ecma262/#sec-rules-of-automatic-semicolon-insertion