(() => {fetch('https://jsonplaceholder.typicode.com/posts/1')
.then((response) =>{
return new Promise(
(resolve) => setTimeout(() => {resolve(response.json())} , 2000)
)
})
.then((d)=>console.log(d))})()
how can I output a promise to the console, and not data
Tell me why, by throwing a promise response.json(), I get its result