結果 : for loop if statement javascript