Created
April 21, 2020 18:37
-
-
Save Jagathishrex/61e0cdf1f9c31882498594d696ed6b68 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
function callback() { | |
try { | |
// error code | |
}catch | |
console.log("Error caught") ; | |
} | |
} | |
function test() { | |
setTimeout(callback, 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment