Created
May 16, 2018 23:19
-
-
Save michaelNgiri/f6b79eb0569b5d8aeef05beaa730c25c to your computer and use it in GitHub Desktop.
error catching
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
try { | |
//perform the action here | |
} | |
catch(err) { | |
//do something when an error occurs e.g console.log(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment