diff --git a/index.html b/index.html index 4ef4a89..3308844 100644 --- a/index.html +++ b/index.html @@ -36,5 +36,6 @@

Hello World!

+ diff --git a/js/fizzbuzz.js b/js/fizzbuzz.js new file mode 100644 index 0000000..ea9399a --- /dev/null +++ b/js/fizzbuzz.js @@ -0,0 +1,19 @@ + +function b(n) { + var i = n; + $: + while(++i) { + if(i % 3) + if(i % 5) + console.log(i); + else + console.log('FizzBuzz'); + else if(i % 5) + console.log('Buzz'); + else + console.log('Fizz'); + if(i >= 100) + break $; + } + return; +} \ No newline at end of file