题解 | #流程控制#
流程控制
http://www.nowcoder.com/practice/8a7bff7ab0d345d5ac5c82e41d9f7115
{"css":"","js":"function fizzBuzz(num) {\n if(num%3==0 && num%5==0){\n return 'fizzbuzz';\n }\n else if(num%3==0){\n return 'fizz';\n }\n else if(num%5==0){\n return 'buzz';\n }\n else if(num=='' || isNaN(num)){\n return false;\n }\n else{\n return num;\n }\n}","html":"","libs":[]}
中规中矩,按照要求一步一步来