1fetch("https://rickandmorty.mimo.dev/api/location/27") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 27,3 "name": "Hideout Planet",4 "type": "Planet",5 "dimension": "unknown",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/79",8 "https://rickandmorty.mimo.dev/api/character/84"9 ],10 "url": "https://rickandmorty.mimo.dev/api/location/27",11 "created": "2017-11-30T14:18:16.869Z"12}