1fetch("https://rickandmorty.mimo.dev/api/location/50") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 50,3 "name": "Kyle's Teenyverse",4 "type": "Teenyverse",5 "dimension": "Replacement Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/197",8 "https://rickandmorty.mimo.dev/api/character/364"9 ],10 "url": "https://rickandmorty.mimo.dev/api/location/50",11 "created": "2017-12-30T12:36:19.730Z"12}