1fetch("https://rickandmorty.mimo.dev/api/location/74") 2 .then((res) => res.json())3 .then((json) => console.log(json))4 .catch((error) => console.error(error))
1{2 "id": 74,3 "name": "Earth (Chair Dimension)",4 "type": "Planet",5 "dimension": "Chair Dimension",6 "residents": [7 "https://rickandmorty.mimo.dev/api/character/429",8 "https://rickandmorty.mimo.dev/api/character/430",9 "https://rickandmorty.mimo.dev/api/character/431",10 "https://rickandmorty.mimo.dev/api/character/432"11 ],12 "url": "https://rickandmorty.mimo.dev/api/location/74",13 "created": "2018-04-16T21:58:24.292Z"14}