I went back to studying logic, since I was only studying front-end and it struck me a very rough doubt about one from another.
for (var i = 1; i <=10 ; i++) {
for (var i2 = 1; i2 <=10; i2++){
document.write(i);
}
}
As you have seen, it shows me the variable i 10 times, but I just asked (in logic) to show me only the first one that would be (1,2,3,4,5,6,7,8,9 , 10). Because it brought me the values of the other is repeated 10 times. Note: Make a thorough explanation, I could not understand search.