FIZZBUZZ

function fizzBuzz(num){}
function fizzBuzz(num){  if(num % 3 === 0 && num % 5 === 0){     return "FIZZBUZZ"
}
}
function fizzBuzz(num){if(num % 3 === 0 && num % 5 === 0){return "FIZZBUZZ"
}else if(num % 3 === 0){
return "FIZZ"
}else if(num % 5 === 0){
return "BUZZ"
}
}
function fizzBuzz(num){if(num % 3 === 0 && num % 5 === 0){return "FIZZBUZZ"
}else if(num % 3 === 0){
return "FIZZ"
}else if(num % 5 === 0){
return "BUZZ"
}else{
return num
}
}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why Should you Choose to React for App Development?

React App Development

Front-End Development with React | Binary Informatics

11 Days of Salesforce Storefront Reference Architecture (SFRA) — Day 6: Using Services Framework

Create a Custom Top-Down Shooter in 5 Minutes using kaboom.js and repl.it

Implementing Stacks in JavaScript

Conway’s Game Of Life in JavaScript

Using ES6+ in Firebase Functions with Babel

How the Benefits of React.JS Can Help to Expand Your Business Reach

React.JS development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ben Harter-Murphy

Ben Harter-Murphy

More from Medium

LC Filter and Transmission Line

High school hackathons are overrated* — Four Context

SURVIVING ALL ODDS

The Bodyguard