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.
Thank you for your description. Very helpful !!!
Thanks for sharing this, definitely helped me!
That is an example on how to write your own tests. You have to do it yourself or directly press submit.
Your function needs at least one return line but you can use as many console.log as you need to debug your code.
Already told you how to debug your code, have you tried? Use
console.log(arr)
after you filled it, your problem will become evident.It should work, just don't remove your
return
statement toconsole.log
.Logging is for debugging, you still need to return your final value.
It's a problem with your code, use
console.log
to print the arrays you use.And next time, mark your post as having spoiler content.