Last active
June 12, 2017 14:27
-
-
Save patarkf/f7678fb4d679357d0c7e135b658f8bd4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function makeRequest() { | |
try { | |
const result = JSON.parse(await fetch('foo')); | |
console.log(result); | |
} catch (error) { | |
console.log(error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment