function fizzbuzz(n) {
for (let i = 1; i <= n; i++) {
const fizz = i % 3 == 0, buzz = i % 5 == 0;
console.log(
fizz && buzz ? "FizzBuzz"
: fizz ? "Fizz"
: buzz ? "Buzz"
: i
);
}
}
Pinned Loading
-
vscode-peachpuff
vscode-peachpuff Publicpeachpuff syntax theme adapted from vim's peachpuff colour scheme
-
-
ai-predicts-house-prices
ai-predicts-house-prices PublicMachine learning model to predict house prices
Jupyter Notebook 1
-
twitter-sentiment-analysis
twitter-sentiment-analysis PublicSentiment analysis on Twitter posts
Python 3
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.