01. try-catch-finally
try {
...
} catch (err) {
...
} finally {
...
}⟧try {
setTimeout(() => throw new Error(), 1000); // throws in console
} catch (e) {
alert("do not work");
}Last updated
try {
...
} catch (err) {
...
} finally {
...
}⟧try {
setTimeout(() => throw new Error(), 1000); // throws in console
} catch (e) {
alert("do not work");
}Last updated