Nice! I'll accept it even though I said no for loops because I like that you used the stepping statement to simply go through the multiples of 3,5,15. That's creative!
I was more expecting someone to abuse the i <= n into the n % 3 type of check in a traditional fizz buzz. (especially abusing while(n % 3) into a more convoluted if)
Nice solution! For hard mode, I think either do it without
.filter
or show how.filter
could be implemented according to the rules.How about with for loops?
Nice! I'll accept it even though I said no
for
loops because I like that you used the stepping statement to simply go through the multiples of 3,5,15. That's creative!I was more expecting someone to abuse the
i <= n
into then % 3
type of check in a traditional fizz buzz. (especially abusingwhile(n % 3)
into a more convolutedif
)I missed that! Sorry, but I was running out of ideas :-) Looking forward to seeing your solution(s)!