r/badcode • • Nov 14 '21

js Peak Efficiency Fizzbuzz

Post image
829 Upvotes

44 comments sorted by

View all comments

Show parent comment

19

u/--var Nov 14 '21

I posted my code golf for this elsewhere on this thread. The challenge is to just list the output from 1 to 100, but doesn't state in what order, so it's more efficient to list from 100 to 1:

for(i=101;--i;)