I have this code:
for (const [index, value] of txtfile1.entries()) {
console.log(`${index}: ${value}`);
}
And I need to pass this loop one more txt file to make something like this:
for (const [index, value] of txtfile1.entries()) && (const [index2, value2] of txtfile2.entries()) {
console.log(`${index}: ${value} and ${index2}: ${value2}`);
}
So my goal is to use data from two different txt files in the same loop. Pls help!