// Buzz fizz javascript
function fizzBuzz(){
for(let i=1; i<=100; i++){
if(i % 3 === 0 && i % 5){
console.log("fizzBuzz")
}
if else (i % 3 === 0){
console.log("fizz")
}else if(i % 5 === 0){
console.log("Buzz")
}else{
console.log(i)
}
}
}
fizzBuzz()
//Fizz buzz
/* Divisible by 3 = fizz*/
/* Divisible by 5 = buzz*/
/* Divisible by both = fizzBuzz*/
// range 100
for(let numberRange = 1; numberRange <= 100; numberRange++){
if(numberRange % 3 === 0 && numberRange % 5 === 0) {
console.log('fizzBuzz');
}else if(numberRange % 3 === 0){
console.log('fizz');
}else if(numberRange % 5 === 0){
console.log('buzz')
;
}else {
console.log(numberRange);
}
}