What will be the output of the following code?
try {
const result = 10 / 0;
console.log(result);
} catch (error) {
console.log('An error occurred:', error);
} finally {
console.log('Finally block executed');
}
What will be the output of the following code?
try {
const result = 10 / 0;
console.log(result);
} catch (error) {
console.log('An error occurred:', error);
} finally {
console.log('Finally block executed');
}