0
How can I put the atributes of an array in a table?
I want to put the content of an array in a table. Each index in a diferent cell. What is the best way to do it? Thank you
4 Respostas
+ 1
use for loop,
a pseudo code:
create element td
{
for number of tr
create element tr
{
for number of td
create element td
td innerText
tr append child td
}
table append child tr
}
body append child table
0
Thanks but how can i put there the arrays index?
0
React way to set array objects to a table
https://code.sololearn.com/WkopXPt58yiX/?ref=app