I am trying to display all info from an array to a table. This is my javascript array:
JS
let tableUsers = [
{name: "Jose", age: "22", Country: "Spain"},
{name: "Jon", age: "25", Country: "France"},
{name: "Jacob", age: "36", Country: "Italy"}
]
{ .... }blocks, you'll see thatradis defined inside theforloop, buttable.appendChild(rad)is outside the loop, so can't see it. (Even if you didn't have the error, you would only be adding a row once, when you want to add a row for each item.)tableUsers.