Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thx, Chrono79, oh boy missed that.
undefined
isn't the input, it's what your function returned. You forgot to returnallDivisors
. About failing just one test, that wasn't the case, depending on the Node's version you select, you can see your code failed all of them.Yeah, I have made the adjustment to undefined should return 1, accounting for that and the test is still failing with the same error.
Hi hobovsky, the error says undefined should return 1. Sorry I didn't mention that previous.
Do you know what input makes your solution to fail?
https://docs.codewars.com/training/troubleshooting#print-input
This comment is hidden because it contains spoiler information about the solution
Read this: https://docs.codewars.com/getting-started/solving-kata and this: https://docs.codewars.com/training/troubleshooting
How do I submit my solution? Code is not passing tests but works in my editor.