This comment is hidden because it contains spoiler information about the solution
The function name is supposed to be descendingOrder, not ordenar.
I wasn't aware of that. Only been on the site about 2 hours. Thank you for correcting me.
Input validation is not part of the task, it's guaranteed your function receives a non negative integer. Changing the task after 100k completions won't happen.
I would like to suggest some test cases:
Please don't post solutions in Discourse.
because it return a string you can add parseInt. let integer = parseInt(digitalArray.join(""));
thats the case with me too
Please read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution a problem with your code is not a kata issue.
My scripts works as it should when i use it in vscode but on here it does not work. Why does it do that?