JSchallenger

Sort an array of numbers in descending order

Viewed: 281
Attempted: 171
Solved: 61
// Write a function that takes an array of numbers as argument
// It should return an array with the numbers sorted in descending order
//

function myFunction() {

return
}
Test Cases:
myFunction([1,3,2])
Expected
[3,2,1]
myFunction([4,2,3,1])
Expected
[4,3,2,1]