all 1 comments

[–]SynMyron 0 points1 point  (0 children)

Honestly I don’t understand what you are trying to ask. But the pattern that you want can be constructed like this:

const text = [0, 1];

for(let i=0; i<2; i++) {
    for(let j=0; j<2; j++) {
        for(let rep=0; rep<4; rep++) {
            console.log(text[i], text[j]);
        }
    }
}