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.
When you observe the error feedback it tells you that your function returns
NaN
, so you should start debugging with console to see what is what and why that happens in the first place.Specifically, look at what
lastIndex
amounts to, and what results from that.Good luck!
First of all, please do not post as an
issue
when you do not know why your code does not pass. That's reserved for when there's a problem with the kata code and you can give examples as to why. Instead, post as aquestion
.This comment is hidden because it contains spoiler information about the solution