codecamp

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);

JavaScript 使用逻辑与运算符&&比较数值
JavaScript else语句
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定