結果 : if else using ternary operator in javascript