結果 : use return in if statement javascript