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 also try to use sort to solve this Kata, but I fail. If there are two zero at the beginning, only one of them will be moved.
You can get my code by searching 'sort' in the browser.
LOL
God, that's so funny
But have you tried
console.log
? You should be able to debug it yourself afterwards.This comment is hidden because it contains spoiler information about the solution
Ah, mb, should've checked, thanks!
Duplicate issue.
This comment is hidden because it contains spoiler information about the solution
Yes, but he didn't. Chained sorting like that doesn't work.
You're using the wrong operator to sort numbers there.
This comment is hidden because it contains spoiler information about the solution
Aren't you supposed to do that?
Mark your post as having spoiler content next time.
Your code fails because of that ^
This comment is hidden because it contains spoiler information about the solution
There're no language-specific code blocks for some languages in the description.
Loading more items...