• Gamma@beehaw.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 months ago

      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!

    • Eranziel@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      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.