Created
August 25, 2019 11:04
-
-
Save herecydev/3bc3bb0bb6e3fc6d053352b685cec64f 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
const apiCall = async () => { | |
let response = await fetch("https://jsonplaceholder.typicode.com/todos/1"); | |
let json = await response.json(); | |
console.log(json) | |
} |
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
<input type="button" value="Click me" onClick="apiCall()" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment