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 am going to close this issue as a user error. If you are really, really sure your code is correct, plese post here:
You can also come to
#help-solve
channel of Codewars Discord, someone will definitely help there.Your solution seems to return invalid, too small values:
This does not seem to be the case. After adding logs to your solution, I can see:
Your code does not produce
1234567098
.This comment is hidden because it contains spoiler information about the solution
The kata does not ask about the biggest.
2017 can be 7210.. 2071 is not the biggest
or
Expected 123456798 but got 987654321
how woud a number starting with 1 be smaller, when it contains 9 ?!
B1ts, thanks you, I saw an error) I was wrong)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Spend some time yourself, because everything is correct, apart from your code.
This comment is hidden because it contains spoiler information about the solution
replace let n1,n2 on const, === on ==