What will be the output of the following code?
try {
throw new SyntaxError('Syntax error');
} catch (error) {
console.log(error instanceof Error);
} finally {
console.log('Finally block executed');
}
What will be the output of the following code?
try {
throw new SyntaxError('Syntax error');
} catch (error) {
console.log(error instanceof Error);
} finally {
console.log('Finally block executed');
}