题解 | #流程控制#
流程控制
https://www.nowcoder.com/practice/8a7bff7ab0d345d5ac5c82e41d9f7115
function fizzBuzz(num) { if (typeof num != 'number' || num == '') { return false } if (num%3 == 0 || num%5 == 0) { return `${num%3 == 0 ? 'fizz' : ''}${num%5 == 0 ? 'buzz' : ''}` } return num }