Ad
  • Custom User Avatar

    Hi @Yassinmoh - it seems you are working in JavaScript; there are 65,000 solves in that language so tests seem to be working OK.

    As your error message says - you are returning the value 10. The kata says: "...If that value has more than one digit, continue reducing in this way until a single-digit number is produced."

    10 has more than one digit, so your solution is not correct, you need to keep performing the algorithm one more step (probably in your code you have something like when n <= 10: stop loop which should be < instead of <=)