DEV Community

Discussion on: Do's and Don'ts for Javascript Newbies

Collapse
 
qm3ster profile image
Mihail Malo

Formatting

Use Prettier. All formatting should be deterministic and fixable automatically.

const vs let

I see a lot of people using let for an object when they plan to mutate it.
Even if they understand it's unnecessary and just use it as a convention it's very confusing to other developers who look for the binding being redefined further on.