結果 : if else ternary operator in javascript