5

Preference check: semicolons to terminate lines in JS, or no?

Comments
  • 2
    Semicolons only after comments and opening braces, of course.
  • 1
    Stopped using them a few months ago, i mean why bother when they do nothing
  • 1
    I don’t work with JS, but I go back and forth with whether I want to use them in PowerShell. Since they’re not really used, they pretty much only help readability, and that’s only if you’re used to them. My home language is C#, so I have a strong habit of ending lines with a semicolon.
  • 1
    @ZethMatthews I stuck with 'em for ages out of habit. Question is, is habit the only reason we're doing it?
Add Comment