📜  javaScript代码示例中带有三元运算符的奇偶条件

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

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