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.
whoa there
ayo nah
very average-to-simple 6 kyu imo. you might just be stuck. (not saying this to be an ass -- just, if it helps, you might be overthinking it and there are simple solutions.)
chatgpt regurgitates other conversations it has seen, and it may have seen many conversations to that effect, so that is what you got.
you might not have been testing one of the cases where your code went into an infinite loop, if something goes wrong and you want to debug it in a different environment, make sure it's the same case (print it out)
the largest string in js has 57 characters and most of them are 20 or less. you have time for billions of operations. so even quite ridiculously inefficient solutions won't time out.
The tests are very small, your code probably wasn't too slow but rather got stuck in an infinite loop.
it's very simple you need to verifier if the index of the number is a multipule of the number or not if it's true add the number to the new array