DEV Community

Discussion on: Semicolons in JavaScript: To Use or Not to Use?

Collapse
 
fchaplin profile image
Frederic CHAPLIN • Edited

I tried a project without semicolon. 
It's a full-stack project, with typescript/node/express on backend and React/JavaScript on frontend. 

Here are my conclusions on it :

  • I encountered no compiling error so far. 
  • I had no readability issues. My code felt cleaner and more readable to me without the "semicolon noise".
  • But the next developer on the project may find this disturbing

I will use the semicolon again, and stick to the good practices for now. Mainly because I'm afraid of the dreaded compiling bug that may occur and because I care for others.

But I clearly think that JavaScript is much better without semicolons.