結果 : if else if else ternary javascript