it's no longer valid solution.
check docs sir to make your code in the comments readable : https://docs.codewars.com/references/markdown#code-block
wow!
There is reverse method. Damn. I used sort
This comment is hidden because it contains spoiler information about the solution
Not bad at all! Short, sweet and to the point!
came to the comments for this. Thanks!
when you return you don't need to add the break couse you already breaking the code
Your reply is 6 months old, so I assume you figured it out, but for those reading and wondering the same. ||[] this part of the code, if no match was found, it returns an empty array and if you call .length on an empty array, it will return 0
Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order.
this method is taking negative numbers too
dude this is baller
IDK, but i like it)
Loading collection data...
it's no longer valid solution.
check docs sir to make your code in the comments readable : https://docs.codewars.com/references/markdown#code-block
wow!
There is reverse method. Damn. I used sort
This comment is hidden because it contains spoiler information about the solution
Not bad at all! Short, sweet and to the point!
came to the comments for this. Thanks!
when you return you don't need to add the break couse you already breaking the code
Your reply is 6 months old, so I assume you figured it out, but for those reading and wondering the same.
||[] this part of the code, if no match was found, it returns an empty array and if you call .length on an empty array, it will return 0
this method is taking negative numbers too
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
dude this is baller
IDK, but i like it)
Loading more items...