DEV Community


Discussion on: If (all) else is complicated, switch to switch?

jmdejager profile image
🐤🥇 Jasper de Jager Author • Edited

I get what you you're saying only

if ('hello' && 'goodbye')

isn't actually checking anything I guess.
The rest are sure valid points! 😊 thnx for sharing

sargalias profile image
Spyros Argalias

Fair point lol. Off the top of my head I use them sometimes to check for empty strings and stuff :). No problem, thanks for sharing the tip.

Forem Open with the Forem app