

What does this program print?
Trace the program the way the computer would, then make your call before running anything.
console.log([5, 1, 4].toSorted((a, b) => a - b), [5, 1, 4].length);


Trace the program the way the computer would, then make your call before running anything.
console.log([5, 1, 4].toSorted((a, b) => a - b), [5, 1, 4].length);