let id = 0; for( let one = 0; one < 4; one++){ for( let two = 0; two < 4; two++){ console.log(`${id}: ${one} ${two}`); id++; } }