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.
I'm not really sure what you mean in your description, @piece. The
.reverse()
method should reverse the items in that same array, and return that same array. It's all done in place, and thenthis
is returned, to allow method chaining (eg.[1, 2, 3].reverse().push(4)
).I was close to doing exactly this, but ended up doing two loops because I was frustrated with the sense the problem didn't make...
I noticed that in my solution I can log the variable "Test" and get a number (2) back if reverse method was called. However for the fourth test it logs the number BUT wants the original array. Can someone please help me see what I'm missing here? I don't understand why a reverse method would be called just to not be reversed.
This was an interesting problem. I did not expect to solve it in under 5 minutes LOL.