📜  javascript 最低数字 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:25.195000             🧑  作者: Mango

代码示例1
function lowestNumber(numbers) {
  // typeof numbers parameter is array
  let lowest = numbers[0];
  for(let i = 1; i < numbers.length; i++){
    if(numbers[i] < lowest){
      lowest = numbers[i]
    }
  }
  return lowest;
}