DEV Community

Cover image for How to make Javascript code neat and clean

How to make Javascript code neat and clean

Asikur Rahman on May 06, 2021

Curly Braces If there is a block then we use curly braces. We should use a space before the bracket like this: So do we have to use curly braces i...
Collapse
 
camelcaseguy profile image
Shubhendra Singh Chauhan

Hey @arraju these are really some good points to write clean and readable JS code. ✨

Speaking of style guides - you can actually set up popular code styles for your project by integrating DeepSource in your project. Whenever you or a contributor will push changes then issues will be raised if there's a violation of code style. Read more about it here.