why is an error always coming when i type 'while(//stuff){}' in a code?
var i = 0;
while(i < 401){
line(i,0,i,400);
}
whenever type this, oh noes pops up and says:
a while loop is taking to long to run
if i write:
for(var i = 0; i < 401; i += 10){
line(i,0,i,400);
}
nothing is wrong.
Why is this so?
Please sign in to leave a comment.