Hello
I am new to programming and to a javascript..
I just want to ask why my codes doesnt run correctly?
see my code
I want to stop the loop when the code reach my var alert2,Code:for(i=1;i<=2;i++) { if(i===alert2) { break; } var alert1; alert("1"); var alert2; alert("2"); var alert3; alert("3"); }
can somebody explain me why?the code ignore the if statement..
thanks![]()


Reply With Quote
Bookmarks