0
I have the Following Code
function imprimirArray(id, array) {
let span = document.getElementById(id);
span.innerHTML = '';
for (let i = 0; i < array.length; i++) {
span.innerHTML += 'pontuação: ' + array[i].soma + ', Categoria: ' + array[i].categoria + ' <br/>';
}
}
but I want instead of displaying the data next to each other to be in table
You can show an example of the structure of this array?
– Sergio
the structure of a
table
, for each interaction offor
has to generate a linetr
and atd
for each property, just change this and your table will be ready– Ricardo Pontual