1fetch("https://rickandmorty.mimo.dev/api/location/24") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 24,3 "name": "Rick's Battery Microverse",4 "type": "Microverse",5 "dimension": "Replacement Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/65",8 "https://rickandmorty.mimo.dev/api/character/388"9 ],10 "url": "https://rickandmorty.mimo.dev/api/location/24",11 "created": "2017-11-30T11:02:41.722Z"12}