There is no test expecting NaN. It seems your function is returning NaN instead of 6. Print the input: https://docs.codewars.com/training/troubleshooting#print-input see why your code is failing.
expected NaN but it's 6, why? I passed all tests, but I got that mistake when I pressed attempt and I don't know how to see where is a mistake, in desc no info about "when I should to return NaN?"???
Loading collection data...
There is no test expecting NaN. It seems your function is returning NaN instead of 6. Print the input: https://docs.codewars.com/training/troubleshooting#print-input see why your code is failing.
expected NaN but it's 6, why? I passed all tests, but I got that mistake when I pressed attempt and I don't know how to see where is a mistake, in desc no info about "when I should to return NaN?"???