var j=0;for (var i = 0; i <= 10; i++) {
while(j <=10){
//
var g=0;for (var i = 0; i <= 10; i++) {
while(g <=10){
document.write('<br>Number '+g);
g++
}
}
//
document.write('<br>Page '+j);
j++
}
}
you’re reseting j, remove the var j=0;
and insert a loop in the loop, first loop the page then the count.
3
solved How do i loop within a loop in Javascript [closed]