注意:从大到小写逻辑 结果为D
var score = 90;
if (score < 60) {
console.log('E');
} else if (score >= 60) {
console.log('D');
} else if (score >= 70) {
console.log('C');
}
注意:从大到小写逻辑 结果为D
var score = 90;
if (score < 60) {
console.log('E');
} else if (score >= 60) {
console.log('D');
} else if (score >= 70) {
console.log('C');
}
本文标题:分支结构-if else if else
本文链接:https://www.haomeiwen.com/subject/eriukqtx.html
网友评论