the title is bit confusing so sorry about that, so what i have is a too arrays one of the array contain more then the second array
x = [1,2,3,4,5];
y = [{
x: "test1",
y: "test2",
z: "test3",
w: `test4`
}]
so what I want to do is for example
for (let i = 0; i < x.length; i++) {
console.log(y[i])
}
which would only log out the first one one time but what i want is to log y as many as x length hope that was clear enough