📜  小于或等于零 javascript 代码示例

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

代码示例2
function lessThanOrEqualToZero(num) {
    let lessThanZero;
    if ( num <= 0) {
      result = true;
    } else {
      result = false;
    }
    return result;
  }