結果 : nested if else in ternary operator javascript