Created
November 3, 2020 14:07
-
-
Save ranamahmud/443a8c5f578ff377668f7bfa7727dce8 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
// error free code | |
try { | |
alert("Hello World"); | |
} catch (err) { | |
alert("Error found"); | |
} | |
// code with error | |
try { | |
alert("Hello Bangladesh"); | |
country; // error, country variable not found | |
alert("Hello World"); | |
} catch (err) { | |
alert("There is an error"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment