[Solved] How to show multiple javascript arrays at the same time [duplicate]


Use the following code.

const number = ["1", "2", "3"];
const name = ["car", "airplane", "train"];
const animal = ["dog", "cat", "hamster"];

for (var i=0; i < number.length; i++)
{
  document.write ( number[i] + " " + name[i] + " " + " " + animal[i] + "<br />" )
}

solved How to show multiple javascript arrays at the same time [duplicate]