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