From 404089ce1ce768d4bc28ae7d81004ecf72dce2f5 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Wed, 24 Nov 2021 20:36:12 +0530 Subject: [PATCH 1/2] Exercise 6.1 --- Chapter 6__/Exercise 6.1 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Chapter 6__/Exercise 6.1 diff --git a/Chapter 6__/Exercise 6.1 b/Chapter 6__/Exercise 6.1 new file mode 100644 index 0000000..3588661 --- /dev/null +++ b/Chapter 6__/Exercise 6.1 @@ -0,0 +1,7 @@ +function adder(a, b) { +return a + b; +} +const val1 = 10; +const val2 = 20; +console.log(adder(val1, val2)); +console.log(adder(20, 30)); From 78eb593abaf151040973baafa9a74223c041d05b Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Wed, 24 Nov 2021 20:45:06 +0530 Subject: [PATCH 2/2] Exercise 6.1 --- Chapter 6__/Exercise 6.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter 6__/Exercise 6.1 b/Chapter 6__/Exercise 6.1 index 3588661..7fdc102 100644 --- a/Chapter 6__/Exercise 6.1 +++ b/Chapter 6__/Exercise 6.1 @@ -1,5 +1,5 @@ function adder(a, b) { -return a + b; + return a + b; } const val1 = 10; const val2 = 20;