0

I'm new to programming. How can I get the array and show it in html?

const tableTag = document.querySelector(".table-header")

const createTrTag = document.createElement("tr")
let createTdTag = document.createElement("td")


createTrTag.appendChild(createTdTag)
tableTag.appendChild(createTrTag)

fetch('https://jsonplaceholder.typicode.com/posts').then(response => response.json()).then(data => { return data }).then(data2 => { return data2 })
VLAZ
  • 26,331
  • 9
  • 49
  • 67

0 Answers0