I would like to give some feedback about ...
this is second time that I solve a problem , and in the console every thing seems to be ok. But when I hit check it shows the last test in red color and says there is an error. I have to skip the mission.
here is the code that I wrote :
function fizzBuzz(data) {
if ((data % 3 == 0) && (data % 5 == 0)) {
return "Fizz Buzz";
} else if ((data % 3 == 0)) {
return "Fizz";
} else if ((data % 5 == 0)) {
return "Buzz";
}else {
return data;
}
}
please let me know if I do something wrong or this is an error from the website
Big thanks in advance for the community ;)
Created at: 2019/05/18 11:08; Updated at: 2019/05/18 23:45