📜  Javascript 比较 - Javascript 代码示例

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

代码示例3
const num1 = 450;
const num2 = 350;
const num3 = 1000;

if (num1 > num2 && num1 > num3) {
    console.log("num1 is bigger then num2 and num3");
} else if (num2 > num1 && num2 > num3) {
    console.log("num2 is bigger num1 and num3");
} else {
    console.log("num3 is bigger then num1 and num2");
}
//Output: num3 is bigger then num1 and num2