1fetch("https://rickandmorty.mimo.dev/api/location/70") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 70,3 "name": "Snuffles' Dream",4 "type": "Dream",5 "dimension": "Dimension C-137",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/397",8 "https://rickandmorty.mimo.dev/api/character/398"9 ],10 "url": "https://rickandmorty.mimo.dev/api/location/70",11 "created": "2018-04-15T17:13:54.071Z"12}