Skip to content

Instantly share code, notes, and snippets.

@pablotolentino
Created May 19, 2021 03:17
Show Gist options
  • Save pablotolentino/ab4e9af6060e204a0db92daedc1d8604 to your computer and use it in GitHub Desktop.
Save pablotolentino/ab4e9af6060e204a0db92daedc1d8604 to your computer and use it in GitHub Desktop.
try {
throw new Error('el error');
} catch (err) {
console.error(err.message);
} finally {
console.error('finally');
}
// Resultado:
// el error
// finally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment