Question PRG-JS-0061
HardWhat is the output of this program?
console.log([10, 1, 3].sort(), [10, 1, 3].sort((a, b) => a - b), [] + {}, [] == false);
- A.
[ 1, 10, 3 ] [ 1, 3, 10 ] [object Object] true
- B.
[ 1, 10, 3 ] [ 1, 3, 10 ] {} false
- C.
Sign up free to see the answer and a step-by-step explanation.