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.
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.