1fetch("https://rickandmorty.mimo.dev/api/location/65") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 65,3 "name": "Trunk World",4 "type": "Planet",5 "dimension": "unknown",6 "residents": [],7 "url": "https://rickandmorty.mimo.dev/api/location/65",8 "created": "2018-01-10T19:03:13.484Z"9}