1fetch("https://rickandmorty.mimo.dev/api/location/104") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 104,3 "name": "Near-Duplicate Reality",4 "type": "Reality",5 "dimension": "Unknown dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/653",8 "https://rickandmorty.mimo.dev/api/character/654",9 "https://rickandmorty.mimo.dev/api/character/659",10 "https://rickandmorty.mimo.dev/api/character/660"11 ],12 "url": "https://rickandmorty.mimo.dev/api/location/104",13 "created": "2020-08-13T11:15:54.414Z"14}