Day_9 #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
完成
===和=的区别(一个是比较,一个是赋值)能写出 if/else 判断成年
能写出多分支分数评级
知道 === 和 = 的区别(一个是比较,一个是赋值)
let age = 18;
if (age >= 18) {
console.log("成年");
} else {
console.log("未成年");
}
let score = 1000;
if (score >= 90&& score <= 100) {
console.log("优秀");
} else if (score >= 60 && score < 90) {
console.log("及格");
} else if (score >= 0 && score < 60) {
console.log("不及格");
} else {
console.log("分数不合法");
}
let ages = 15;
if (ages >= 18) {
console.log("成年");
} else {
console.log("未成年");
}
能写出 if/else 判断成年
能写出多分支分数评级
知道 === 和 = 的区别(一个是比较,一个是赋值)