結果 : javascript if then else ternary operator