結果 : if condition using ternary operator in javascript