結果 : multiple if else using ternary operator javascript