Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nested loops 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);
    }
}
 
PREVIOUS NEXT
Tagged: #nested #loops #javascript
ADD COMMENT
Topic
Name
1+9 =