DEV Community

Discussion on: Fizz? Buzz? FizzBuzzz!

Collapse
peledzohar profile image
Zohar Peled

Javascript is a weakly typed language, so '' || i is basically translated to i because '' is implicitly converted to false.