Open this example in the interactive library
Source code
const label = "ready";
try {
throw new Error("delayed");
} catch (label) {
console.log(label.message);
}
console.log(label);
Sample output
delayed ready

Open this example in the interactive library
const label = "ready";
try {
throw new Error("delayed");
} catch (label) {
console.log(label.message);
}
console.log(label);
delayed ready