What will be the output of the following code?
try {
throw new TypeError('Type error');
} catch (error) {
console.log(error.message);
} finally {
console.log('Finally block executed');
}
What will be the output of the following code?
try {
throw new TypeError('Type error');
} catch (error) {
console.log(error.message);
} finally {
console.log('Finally block executed');
}