📅  最后修改于: 2022-03-11 15:02:31.955000             🧑  作者: Mango
let numbers = [1, 3, 5];
let result = true;
for (let i = 0; i < numbers.length; i++) {
if (numbers[i] <= 0) {
result = false;
break;
}
}
console.log(result);Code language: JavaScript (javascript)