1fetch("https://rickandmorty.mimo.dev/api/location/102") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 102,3 "name": "Alien Acid Plant",4 "type": "Acid Plant",5 "dimension": "Replacement Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/648",8 "https://rickandmorty.mimo.dev/api/character/649",9 "https://rickandmorty.mimo.dev/api/character/650",10 "https://rickandmorty.mimo.dev/api/character/651"11 ],12 "url": "https://rickandmorty.mimo.dev/api/location/102",13 "created": "2020-08-13T10:08:12.986Z"14}