DEV Community

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

jankapunkt profile image
Jan Küster • Edited on

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.

cat profile image
Cat Author

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