-
-
Save amandeepmittal/0e271be0da4b1fb65c9f548a2168febd 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
async function getUser() { | |
try { | |
const response = await axios.get('/user?ID=54321'); | |
console.log(response); | |
} catch (error) { | |
console.error(error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment