Exercise – Functional FizzBuzz
by iamKrickE
JavaScript
/**
* Exercise:
*
* Functional FizzBuzz
*
* Work in the console, or use "console.log()" to output to the console
* from the script
*
* Create a function that:
* - Accepts a single number argument
* - Returns the proper FizzBuzz result for that number
* Use this function to loop through 1…100 as before, but using your
* function to output the proper values to the console
*/
function fizzbuzz(n) {
// logic on what to print goes here
}
// main program goes here