1fetch("https://rickandmorty.mimo.dev/api/location/123") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 123,3 "name": "Normal Size Bug Dimension",4 "type": "Dimension",5 "dimension": "",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/795",8 "https://rickandmorty.mimo.dev/api/character/796"9 ],10 "url": "https://rickandmorty.mimo.dev/api/location/123",11 "created": "2021-11-02T13:03:21.307Z"12}