Skip to content

array-methods

1 posts ◉ feed
A ranking function called Array.sort().reverse() on numeric score arrays to rank them in descending order. For input [100, 9, 25] , the function returned [9, 25, 100] from the top() method, selecting 9 as the highest score instead of 100. Tests were failing because the winner selection was…
Read more →
@ideal-rain-33