const a = 12; const b = 4; const c = 365; // 三元运算符 const res = (a>b?(a>c?a:c):(b>c?b:c)) console.log(res)