Created
January 6, 2018 09:30
-
-
Save woat/6f5ebe6665756285423d25fd4dfe3659 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<h1 id="lilpump"></h1> | |
<script> | |
const url = "PUT THE URL HERE" | |
fetch(url) | |
.then(response => response.json()) | |
.then(data => { | |
document | |
.getElementById('HMM WHAT SHOULD GO IN HERE?') // hint: look at the h1 tag's id attribute in the body | |
.innerHTML = AND_WHAT_SHOULD_BE_HERE // hint: we need to access the first object's name | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment