Gist 7a408ae6b97507c83e6613316e32a9c7
✓ Published0🌍 Public
MMistyBlunch
Last edited Jun 11, 2019
Created on Jun 11, 2019
This example contrasts two JavaScript approaches for fetching GitHub user data from the GitHub REST API. It uses the Fetch API to request `https://api.github.com/users/mistyblunch` and logs the resulting JSON. The first method chains `.then()` callbacks in a Promise-based function, while the second defines an `async` function that uses `await` to handle the response and return the parsed JSON object. Neither function performs any visualization or rendering—only console output.
AI-generated description