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.
@benbrnpetit for larger datasets push will be more performant than unshifting. When you add an element to the end of an array, it can be done instantly. When you unshift and array, you must move the entire array forward, which takes more time with larger arrays of data
There are no tests for JS. It just says "Should test for something" and '1+1 = 2' which is not the purpose of the kata
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
what do you mean? Like console log the input ?
This comment is hidden because it contains spoiler information about the solution
Eveytime I run my code, it says Expected 0 to equal 6. WHat am I missing here ?
I apologize. Since my code didn't work, I didn't imagine it to be spoiler information. What do you mean pring the middle values?
If you wouldn't mind, can you walk me through where my code went wrong as well as explain your thought process for your solution ?
This comment is hidden because it contains spoiler information about the solution