Profile cover photo
Profile photo
iaPH Web Design
45 followers -
iaPH = Web Design + Web Development + Web Services
iaPH = Web Design + Web Development + Web Services

45 followers
About
iaPH Web Design's posts

Post is pinned.
// In this project, we're going to build FizzBuzz. It's a children's game where you count from 1 to 100. Easy, right? Here's the catch: instead of saying numbers divisible by 3, say "Fizz". And instead of saying numbers divisible by 5, say "Buzz". For numbers divisible by both 3 and 5, say "FizzBuzz". "1, 2, Fizz, 4, Buzz"...and so forth.
for(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);
}
}

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
Wait while more posts are being loaded