Lists, your way
Leaderboards need sorting, pages show the first ten results, and sometimes you need a copy of a list so the original stays safe. Let's round out your array toolbox.
Sorting
const names = ["Sita", "asha", "Bikash"]; console.log([...names].sort()); const scores = [40, 100, 9]; console.log([...scores].sort()); console.log([...scores].sort((a, b) => a - b)); console.log([...scores].sort((a, b) => b - a));