I'm trying to loop through this array
const test = [(18, 20), (45, 2), (61, 12), (37, 6), (21, 21), (78, 9)];
but it's output looks like this
console.log(test); //[20, 2, 12, 6, 21, 9]
please let me know how to loop through this array correctly .