結果 : nested if using ternary operator in javascript