📅  最后修改于: 2022-03-11 15:01:48.188000             🧑  作者: Mango
// condition ? expr1 : expr2
// example:
let bar = 2
let foo = 0
let result;
result = bar > foo ? 1 : -1; // result = 2 > 0 ? 1 (true) : -1 (false);
// output: result = 1