<a href ...<form ...window.location .href = urlfetch("https://swapi.dev/api/planets/1/?format=json")
.then(response => response.json())
.then(data => {
console.log(data["name"])
})fetch
const response = await fetch("https://swapi.dev/api/planets/1/?format=json")
const data = await response.json()
console.log(data["name"])fetch