結果 : nested if in javascript