ashish-r / Fizz-Buzz

A collection of come cool Fizz Buzz programs in your favorite programming language
MIT License
10 stars 55 forks source link

[JS] Clean fizz-buzz implementation with string concatenation #87

Closed h-nick closed 3 years ago

h-nick commented 3 years ago

Like most others, this one has O(n) complexity. However, it makes a reduced amount of if-comparisons and it's supported by a temporal string.