最小值和最大值

基本类型 / 数字 / 数学运算

let minValue = Math.min(2, 1, 3);
//minValue is 1

let maxValue = Math.max(2, 1, 3);
//maxValue is 3

console.log(`minValue is ${minValue}`);
console.log(`maxValue is ${maxValue}`);