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.
6. The returned array should be sorted(in Unicode code point order)
You're welcome and you learned something new too. Always check the docs when something doesn't work as you expect, and MDN is user-friendly.
Read this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#array_iteration_and_for...in
Array.prototype has an added method in the testing part and that's what you're seeing there with for...in, you have some other ways to iterate over an array, some listed in the link, for loop is one of them.
The cause is you're using for...in with an array.
Research "this" keyword, you need to use it here. It's kinda intermediate concept, I'm not sure why they made it 7kyu.
You have an example in the description. You can also look the sample tests in the trainer (the output is
expected
).You forgot the "package" name -> "race" is unknown.
"IntArrayOf" is baldy spelled.
it is the way Kotlin prints an array... You can google "kotlin array printing" and see what you can do.
Maybe you need to learn a bit more of Kotlin (BTW don't forget to give the name of your language). Good luck!