Last active
February 19, 2020 18:23
-
-
Save saiumesh535/0bc9577d08a31bfee2ad23294bf09c8c to your computer and use it in GitHub Desktop.
async await without try catch
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 getData(){ | |
const a = await someFunction().catch((error)=>console.log(error)); | |
const b = await someOtherFunction().catch((error)=>console.log(error)); | |
if(a && b ) console.log("some result") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment