What value is printed when executing the following code?
const arr = [3, -1, 2, -2];
arr.sort((a, b) => Math.abs(b) - Math.abs(a));
console.log(arr[0]);
What value is printed when executing the following code?
const arr = [3, -1, 2, -2];
arr.sort((a, b) => Math.abs(b) - Math.abs(a));
console.log(arr[0]);