From 503a608f5a9f9d3664f9c76ac9abdf4ac542f92f Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Thu, 25 Nov 2021 20:01:15 +0530 Subject: [PATCH] cleanup --- Chapter 12/recursive functions | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 Chapter 12/recursive functions diff --git a/Chapter 12/recursive functions b/Chapter 12/recursive functions deleted file mode 100644 index afee069..0000000 --- a/Chapter 12/recursive functions +++ /dev/null @@ -1,19 +0,0 @@ -let start = 100; -loop(start); -loop1(start); -function loop(val) { - console.log(val); - if (val < 1) { - return - } - loop(val - 1); -} - -function loop1(val) { - console.log(val); - if (val > 0) { - val--; - loop1(val); - } - return 'end'; -}