結果 : ternary condition in javascript