Created
October 11, 2017 14:47
-
-
Save zlatkov/1f858a186da7d19fab77893e34e46adc 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 loadData() { | |
try { | |
var data = JSON.parse(await getJSON()); | |
console.log(data); | |
} catch(e) { | |
console.log(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment