atelo
Catch #1JavaScript

One line is lying.

An AI wrote this. It runs, the checks pass, and one line still ships the wrong answer. You have three clicks to catch it.

the ask: “sort the day's order totals from smallest to largest0:00
locked test · runs the function above
const totals = [18, 5, 140, 32];
console.log(sortTotals(totals).join(", "));
it runs · checks pass
140, 18, 32, 5
one line is lying.