DEV Community

Discussion on: Clean Code Applied to JavaScript — Part II. Variables

Collapse
 
ionline247 profile image
Matthew Bramer

I was waiting for booleans...
They're really easy to read, if they're prefixed with a verb. e.g

const isMonday
const hasCoffee
const shouldPost
Enter fullscreen mode Exit fullscreen mode
Collapse
 
carlillo profile image
Carlos Caballero

Yes!

I forget it. The best name to Boolean are there (in my experience) 🙃