Skip to content

Instantly share code, notes, and snippets.

View angvishvish's full-sized avatar
🎯
Focusing

Angvish Kumar angvishvish

🎯
Focusing
View GitHub Profile
var check = function (number) {
var fizz = number % 3 == 0,
buzz = number % 5 == 0;
console.log(fizz ? buzz ? "FizzBuzz" : "Fizz" : buzz ? "Buzz" : number);
if (number != 0) {
return check(number - 1);
}
}