📜  三元运算符是如何工作的? - Javascript代码示例

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

代码示例1
const num1 = 3;
const num2 = 3;
num1 == num2 ? console.log('true') : console.log('flase');
//Expected output: true