1fetch("https://rickandmorty.mimo.dev/api/location/29") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 29,3 "name": "Dorian 5",4 "type": "Planet",5 "dimension": "Replacement Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/93",8 "https://rickandmorty.mimo.dev/api/character/104",9 "https://rickandmorty.mimo.dev/api/character/198"10 ],11 "url": "https://rickandmorty.mimo.dev/api/location/29",12 "created": "2017-12-01T11:36:16.463Z"13}