結果 : how to write and if statement in javascript