Bit Masks
The goal of the Bit Masks app is demonstrate how to use bit masks to evaluate longer sequences of switches without having to rely on long strings of…
It's difficult to find an app that doesn't rely on some form of conditional logic to implement its functionality. This is almost always performed using statements like: if (processAccount === true) { / do something / } If and switch statements work well for a limited number of conditionals, but what if your app had 10's or 100's of conditionals to evaluate? Luckily, there's another way. The goal of the Bit Masks app is demonstrate how to use bit masks to evaluate longer sequences of switches without having to rely on long strings of conditional statements.
Hosting · Free forever
Deploys free on GitHub Pages, Cloudflare Pages or Vercel Hobby.
Deploy it and share a link.
Core features · 14
- User can see a vertical list of checkboxes with the following cities
- Moscow: GMT +3
- Paris: GMT +2
- Berlin: GMT +2
- Brussels: GMT +2
- Amsterdam: GMT +2
- Rome: GMT +2
- London: GMT +1
- Dublin: GMT +1
- New York: GMT -4
- Washington, DC: GMT -4
- St. Louis: GMT -5
- Los Angeles: GMT -7
- Tokyo: GMT +9
Once it works
- User can search for cities NOT in the GMT offset entered in the
- User can see a summary count of the number of cities that met the