Created
March 21, 2021 02:37
-
-
Save Uzwername/de413ee78c74e9a2b9d000b063e07da7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
out = []; | |
for (let i = 0; i < 2; i++) { | |
for (let j = 0; j < 2; j++) { | |
out.push([ i, j ]); | |
} | |
} | |
console.log(out); // -> [[ 0, 0 ], [ 0, 1 ], [ 1, 0 ], [ 1, 1 ]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment