1fetch("https://rickandmorty.mimo.dev/api/location/39") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 39,3 "name": "Galactic Federation Prison",4 "type": "Space station",5 "dimension": "unknown",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/150"8 ],9 "url": "https://rickandmorty.mimo.dev/api/location/39",10 "created": "2017-12-29T12:02:33.513Z"11}