Photo by Jon Tyson on Unsplash

Naming Boolean Variables: Prefixes

Juan Bernal
JavaScript in Plain English
2 min readDec 7, 2019

The hardest part of programming? Naming your variables. You might usually see variables prefixed with ‘is’ or ‘has’, or you may just see a plain old descriptive name because it just ‘works’. Instead of wasting countless minutes trying to determine how to best name your variables, specifically boolean variables, try and see if the suggestions below help you out.

Prefixes are nice, but not…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Frontend Developer sharing tips, personal experiences, and everything in-between.