結果 : why is my for loop not working javascript