📜  三元运算符 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:10.430000             🧑  作者: Mango

代码示例6
condition ? expression1 : expression2 
// Will return expression1 if condition = true and expression2 if condition != true