DEV Community

Discussion on: 7 Tips for Clean Code in JavaScript You Should Know

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

I totally agree that _ has its uses and can make code much more reasonable in cases where e-notation wouldn't do so. But for the specific case of having lots of 0s, I'd always prefer the e-notation, because you can just read the number of zeroes. Something like 1e32 would be difficult to count even with _-notation.

Thread Thread
 
kais_blog profile image
Kai

true. I agree. Maybe next time, I should choose a different example. Thanks for your input, though.