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