When working in a team, consistent style is important, so team members can modify more projects easily, without having to get used to a new style each time.
Also, it can help eliminate programming issues using static analysis.
Tools that can help:
ESLint
Standard
If you’d like to be even more confident, I suggest you to learn and embrace the JavaScript Clean Coding principles as well!