DEV Community

Discussion on: JavaScript Tips and Best Practices

Collapse
 
mvoloskov profile image
Miloslav 🏳️‍🌈 🦋 Voloskov

Nice! Never knew you could use underscores to format large numbers like that!

On semicolons though, it's only partially true. I never let production code stay without a linter, and it can catch every single of that few unintentional issues that may occur when you don't use semicolons.

When my developers like it better without semicolons, I choose not to use them, because I'd trade even the marginal improvement in their mental health for some automatable stuff all day, any day.

Collapse
 
apoorvtyagi profile image
Apoorv Tyagi

Agree. It is just that to be on safer side I'd want to use semicolon.

As I have mentioned in the links given, it can have un-intended consequences sometimes and I think that might be the reason why some companies prefer them in their coding standards.

But yeah linter are a good way to catch these issues