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.
Could you explain to me (s.length / 2 - 1) ? To me it is saying find the middle and move the index down one in case it is an even number string length so you can return both numbers. I don't get it, I do understand the deprication of substr and I used substring in my solution. Or if you could maybe explain what the (s.lenght / 2) - 1 means that will help as well.
This comment is hidden because it contains spoiler information about the solution
Do keep in mind when you are coding you are coding for people who come after you as well. So make it easy on them, this is far too complicated of a solution for anyone to come after you and alter it. <3
I had the same answer except my output was throwing an error at my < sign... why?