Light Mode
Dark Mode
Hi , I think there is a bug in this website

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: May 18, 2019, 11:08 a.m.
Updated: May 18, 2019, 11:45 p.m.
0
1
User avatar
inkimiaei