This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the Fizz Buzz value for a given number. | |
* | |
* @param {number} num - The input number. | |
* @returns {string|number} The Fizz Buzz value: | |
* - "Fizz" if the number is divisible by 3. | |
* - "Buzz" if the number is divisible by 5. | |
* - "FizzBuzz" if the number is divisible by both 3 and 5. | |
* - The input number if none of the above conditions are met. | |
*/ |