Handling Errors with try-catch-finally
What error handling pattern is demonstrated here?
try {
  JSON.parse('{invalid json');
} catch (error) {
  if (error instanceof SyntaxError) {
    console.log('Invalid JSON');
  }
}try {
  JSON.parse('{invalid json');
} catch (error) {
  if (error instanceof SyntaxError) {
    console.log('Invalid JSON');
  }
}