Skip to content
Sign upLog in
← Back to Community

I Keep getting 1 compile error everytime I Run,

Profile icon
JaedanSmith

I need help discovering the 1 error i keep receiving when i run this java script

Voters
Profile icon
CholAkuany
Profile icon
JaedanSmith
Comments
hotnewtop
Profile icon
ash15khng

Remove the semicolon after the while statement. By having it there, the code keeps checking if I >= 1, but because you have the semicolon, the code checks it, it evaluates as true, but nothing happens because you stop the next lines from running with the semicolon.

Profile icon
mwilki7

Try removing the semicolon after the while statement:
while(I >= 1);