you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago (2 children)

Semicolons are optional in JavaScript unless you are combining multiple statements on a single line, which is generally not something you should be doing anyway.

I avoid them whenever possible. It encourages people to write poorly formatted code. But then I'm a python dev so I tend to be opinionated when it comes to whitespace.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago* (1 child)

    Just slap a formatter on there and call it a day. Semicolon or not, IDGAF, let's just stop with the formatting bikeshedding. There are more important things to think about. They don't encourage anything if you don't think about formatting.

  • source
  • parent
  • hideshow 1 child comment