Both of these pieces of code:
- Make an HTTP
GET
request to the same URL - Parse the response (which is in JSON format) into datatypes (
Hash
for Ruby andObject
for JavaScript) - Retrieve the
results
array and iterate over each Star Wars character
Ruby