結果 : writing if else statements in javascript