
JavaScript 使用逻辑或运算符||比较数值
function myTest(val) {
// Only change code below this line
if (val<10||val>20) {
return "Outside";
}
// Only change code above this line
return "Inside";
}
// Change this value to test
myTest(15);
function myTest(val) {
// Only change code below this line
if (val<10||val>20) {
return "Outside";
}
// Only change code above this line
return "Inside";
}
// Change this value to test
myTest(15);
关闭