DEV Community

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

Collapse
 
jankapunkt profile image
Jan Küster • Edited

Hey Cat, some things I'd like to add to your code. The code is not wrong but there is space for improvement in terms of readability (especially brackets positioning) and failsafety (you should always use === in favor of ==). The cool things is, that a linter can help you with that.

Collapse
 
cat profile image
Cat

Linted and added the "=". I need to be more careful about that! Thank you!