DEV Community

Discussion on: How Do You Name Your Boolean Variables?

Collapse
 
jckuhl profile image
Jonathan Kuhl

usually something that makes grammatical sense paired with if

if(userExists && userHasValidCredentials) { handeLogin(user) }

I'm also not worried about long variable names because VSCode fills them in for me, and most editors do that for you.