Tell me you’re a JavaScript StackOverflow copy-pasta noob without telling me you’re a JavaScript StackOverflow copy-pasta noob.
I don’t get it? When has this ever fixed a bug? Compiler error sure? But a bug?
I actually had a bug in a game jam freshman year because of this. It was java, so there was a lot of questionable decisions going on, but adding the semicolon fixed it!
…I want details. Java is my most used language and I want to know lol
Semicolons are technically optional in JS, but there are some rare cases where omitting them can result in different behaviour.
And this is why you should enforce code style, kids. Preferably with an automated tool.
This type of shit makes me aware that there really are devs that don’t care about efficiency and will spend weeks on some really novice shit because their tools and skills are bad.
print(“here”);
Good tip for Pascal.