Skip to content

Instantly share code, notes, and snippets.

@psiborg
Created January 6, 2012 08:26
Show Gist options
  • Select an option

  • Save psiborg/1569681 to your computer and use it in GitHub Desktop.

Select an option

Save psiborg/1569681 to your computer and use it in GitHub Desktop.
JS Try Block
try {
}
catch (ex) {
console.error(ex);
}
finally {
}
function say (arg) {
if (arg == null) {
throw new Error("argument is missing or undefined");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment