how to use nested for loop for the same var in javascript code example
Example: nested for loop javascript
// Basic Javascript Nested Loop / 2D Array
for (var x = 0; x < 10; x++) {
for (var y = 0; y < 10; y++) {
console.log("x: " + x + ", y: " + y);
}
}