完整如果条件
填空题 入门
题目
Fill in 空白所以消息 prints 'hot' 当 temperature 是 above 30.
代码
const temperature = 35;
if (temperature ___ 30) {
console.log("hot");
}
提示
我们想要 'greater than'.
解释
The > operator checks if the left value is greater than the right. With temperature > 30 and temperature = 35, the condition is true (35 > 30), so "hot" is printed. Other valid answers include >= (greater than or equal), but > is the most direct answer for "above 30".
相关资源
相关课程
- 条件
学习关于 JavaScript comparison 运算符.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。