console.log(Math.min(2, 3, 1)); // expected output: 1 console.log(Math.min(-2, -3, -1)); // expected output: -3 const array1 = [2.2, 3, 1.1]; console.log(Math.min.apply(Math, array1)); // expected output: 1