📜  三元运算符的奇偶条件 - Javascript代码示例

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

代码示例1
let number = 15;
number %2 ==0 ? console.log(number ," is Even Number!!!"): console.log(number, " is Odd Number!!!");