Skip to content

Commit 581b174

Browse files
Add Fizz Buzz to Livescript (#5176)
1 parent 1f7bda0 commit 581b174

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

archive/l/livescript/fizz-buzz.ls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
for i from 1 to 100
2+
word = ''
3+
word += 'Fizz' if i % 3 is 0
4+
word += 'Buzz' if i % 5 is 0
5+
console.log(word or i)

0 commit comments

Comments
 (0)