I feel that I understand the basics of for loops, but there is something I'm not grasping. In the following code to compute 2 to the 10th power...
var result = 1;
for (var counter = 0; counter < 10; counter = counter + 1);
result = result * 2;
the result is 1024
What I don't understand is how the "result" variable is being plugged into the loop?? There are lots of instructions for the "counter" variable, but "result" seems to be pulled out of nowhere....