Skip to content

Commit

Permalink
Part2
Browse files Browse the repository at this point in the history
  • Loading branch information
bucklerd committed Feb 1, 2019
1 parent c5d48a0 commit 98da80c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lab/lab1/part2-fizzbuzz.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@
Start code
===================== */

for (let i = 1; i <= 100; i++) {
if(i%3===0 & i%5 ===0) {console.log('FizzBuzz');}
else if (i%3 === 0) {console.log('Fizz');}
else if (i%5 === 0) {console.log('Buzz');}
else {console.log(i)};
}


/* =====================
Expand Down

0 comments on commit 98da80c

Please sign in to comment.