From e6e1843165567bbaa7d5c78862e20054cd154637 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Tue, 18 Apr 2023 16:54:43 -0400 Subject: [PATCH] permutations --- beats.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 beats.js diff --git a/beats.js b/beats.js new file mode 100644 index 0000000..09ea21d --- /dev/null +++ b/beats.js @@ -0,0 +1,13 @@ +for( let one = 0; one < 4; one++){ + for( let two = 0; two < 4; two++){ + for( let three = 0; three < 4; three++){ + for( let four = 0; four < 4; four++){ + for( let five = 0; five < 4; five++){ + for( let six = 0; six < 4; six++){ + console.log(`${one} ${two} ${three} ${four} ${five} ${six}`); + } + } + } + } + } +}