This commit is contained in:
Karan
2021-11-25 20:01:09 +05:30
committed by GitHub
parent 7be5f98ee4
commit c49f1274b9
-15
View File
@@ -1,15 +0,0 @@
function test(val) {
try {
if (isNaN(val)) {
throw "Not a number";
} else {
console.log("Got number");
}
} catch (e) {
console.error(e);
} finally {
console.log("Done " + val);
}
}
test("a");
test(100);