The Math min() static method returns the smallest of the numbers given as input parameters, or Infinity if there are no parameters.

    
    console.log(Math.min(2, 3, 1));
    // 1

    console.log(Math.min(-2, -3, -1));
    // -3

    const numbers = [2, 3, 1];

    console.log(Math.min(...numbers));
    // 1