DEV Community

Discussion on: If/Else and Specificity: Understanding "FizzBuzz"

Collapse
 
nineismine profile image
nineismine • Edited

Posting from my phone so this is all off the cuff...

Couldnt you also just do the 2 is's (if 3 ... fizz )
(If 5 ... buzz)

The fall through would handle both cases...