codecamp

 JavaScript 小于等于比较运算符<=  

function myTest(val) {
if (val<=12) {// Change this line
return "Smaller Than or Equal to 12";
}


if (val<=24) {// Change this line
return "Smaller Than or Equal to 24";
}


return "25 or More";
}


// Change this value to test
myTest(10);
 JavaScript 小于比较运算符<
JavaScript 使用逻辑与运算符&&比较数值
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定