From c49f1274b93619897c77fa31d5cef6a405112f0c Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Thu, 25 Nov 2021 20:01:09 +0530 Subject: [PATCH] cleanup --- Chapter 12/try catch throw | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 Chapter 12/try catch throw diff --git a/Chapter 12/try catch throw b/Chapter 12/try catch throw deleted file mode 100644 index 42613ec..0000000 --- a/Chapter 12/try catch throw +++ /dev/null @@ -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);