What value is printed when executing the following code?
const arr = [5, 2, 9];
const smallest = arr.reduce((acc, x) => Math.min(acc, x), Infinity);
console.log(smallest);
What value is printed when executing the following code?
const arr = [5, 2, 9];
const smallest = arr.reduce((acc, x) => Math.min(acc, x), Infinity);
console.log(smallest);