結果 : how to write if else statements in javascript