The bug your test cannot see
Here is a function. It has one job: give me the three highest scores.
function topThree(scores) {
scores.sort((a, b) => b - a)
return scores.slice(0, 3)
}
It works. topThree([72, 98, 64, 91, 87,
inferhaven.hashnode.dev7 min read