What will happen when the following code is executed?
try {
console.log('Try block');
throw new Error('Custom error');
} catch (error) {
console.log('Catch block');
} finally {
console.log('Finally block');
}
What will happen when the following code is executed?
try {
console.log('Try block');
throw new Error('Custom error');
} catch (error) {
console.log('Catch block');
} finally {
console.log('Finally block');
}