📅  最后修改于: 2022-03-11 15:03:41.727000             🧑  作者: Mango
代码示例1
const isBlack = false;const text = isBlack ? 'Yes, black!' : 'No, something else.';console.log(text);// "No, something else."