Really basic for loop question?!

Hi really new to javascript, I’ve been asked a question, can you help me:)

for (count1 = 1; count1<100; count1=count1+1) {
for (count2 = 1; count2<100; count2=count2+1){
document.write(count1*count2);
}
document.write(“<br />”);
}

see above how do I put a for loop into a another for loop, is it that thing they call nesting. pls help.

Nat.

Not sure I understand your question since you appear to already know exactly how to put one loop inside the other.

what happens when you run the code?

does it output what you expect?

you’re code looks ok and yes, it is nesting for loops.