
JavaScript 大于等于比较运算符>=
function myTest(val) {
if (val>=20) {// Change this line
return "20 or Over";
}
if (val>=10) {// Change this line
return "10 or Over";
}
return "9 or Under";
}
// Change this value to test
myTest(10);
function myTest(val) {
if (val>=20) {// Change this line
return "20 or Over";
}
if (val>=10) {// Change this line
return "10 or Over";
}
return "9 or Under";
}
// Change this value to test
myTest(10);
关闭