Fix for-loop solution
Fix for-loop solution

The main thing was moving console.log out of the for loop.

Also changed the variable declaration order, `<=` and whitespace to match the problem statement.
ipelekhan/javascripting,agrimm/javascripting,d9magai/javascripting,aijiekj/javascripting,braday/javascripting,michaelgrilo/javascripting,liyuqi/javascripting,nodeschool-no/javascripting,ubergrafik/javascripting,victorperin/javascripting,sethvincent/javascripting,jaredhensley/javascripting,claudiopro/javascripting,RichardLitt/javascripting,ymote/javascripting,LindsayElia/javascripting,NgaNguyenDuy/javascripting,SomeoneWeird/javascripting,montogeek/javascripting,barberboy/javascripting,marocchino/javascripting,ledsun/javascripting,Aalisha/javascripting,CLAV1ER/javascripting,a0viedo/javascripting,soujiro27/javascripting,thenaughtychild/javascripting,he11yeah/javascripting,MatthewDiana/javascripting,gcbeyond/javascripting,samilokan/javascripting