結果 : nested if condition in javascript