From 24522ba5932c6559e996522527058579b3b3c9a4 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 06:40:07 +0500 Subject: [PATCH 01/14] Update math.js --- math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.js b/math.js index c749300..7b7b4c3 100644 --- a/math.js +++ b/math.js @@ -3,5 +3,5 @@ exports.isStar = true; exports.sum = function (a, b) { - // Реализуйте сложение в этой функции + return a+b; }; From 9cf68bb4f4430e685a20812361f15dd7350f5955 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 06:45:33 +0500 Subject: [PATCH 02/14] Update math.js --- math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.js b/math.js index 7b7b4c3..e5a766b 100644 --- a/math.js +++ b/math.js @@ -3,5 +3,5 @@ exports.isStar = true; exports.sum = function (a, b) { - return a+b; + return a + b; }; From 48a2c2727313dfa8a9ded49812bc6ad5649c0df4 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:34:07 +0500 Subject: [PATCH 03/14] Update math.js --- math.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/math.js b/math.js index e5a766b..7638106 100644 --- a/math.js +++ b/math.js @@ -5,3 +5,6 @@ exports.isStar = true; exports.sum = function (a, b) { return a + b; }; +exports.sum = function (a, b, c) { + return a + b + c; +}; From 31fdd2dfbbd5492e97f3d49043ff1c07c47b0782 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:36:09 +0500 Subject: [PATCH 04/14] Update math.js --- math.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/math.js b/math.js index 7638106..f545937 100644 --- a/math.js +++ b/math.js @@ -5,6 +5,4 @@ exports.isStar = true; exports.sum = function (a, b) { return a + b; }; -exports.sum = function (a, b, c) { - return a + b + c; -}; + From ca3f6dfb2b3c7b14e09d75aa2fa45b0540e922f0 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:39:32 +0500 Subject: [PATCH 05/14] Update math.js --- math.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/math.js b/math.js index f545937..896643d 100644 --- a/math.js +++ b/math.js @@ -6,3 +6,7 @@ exports.sum = function (a, b) { return a + b; }; +exports.sum = function (a, b, c) { + return a + b + c; +}; + From 967ea35f8c56dc65723d469c51e4e6b62db79ba3 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:39:41 +0500 Subject: [PATCH 06/14] Update math.js --- math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.js b/math.js index 896643d..d29fe12 100644 --- a/math.js +++ b/math.js @@ -6,7 +6,7 @@ exports.sum = function (a, b) { return a + b; }; -exports.sum = function (a, b, c) { +exports.sum1 = function (a, b, c) { return a + b + c; }; From dd310dbaac5e5c7b9043b971d133d082c4ced870 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:42:53 +0500 Subject: [PATCH 07/14] Update math.js --- math.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/math.js b/math.js index d29fe12..8d4ee74 100644 --- a/math.js +++ b/math.js @@ -3,10 +3,8 @@ exports.isStar = true; exports.sum = function (a, b) { - return a + b; + return Number(a) + Number(b); }; -exports.sum1 = function (a, b, c) { - return a + b + c; -}; + From 7820fc7cce05cb0a49508f3fa2d4bbd1aa2983e9 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:45:00 +0500 Subject: [PATCH 08/14] Update math.js --- math.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/math.js b/math.js index 8d4ee74..55b5a53 100644 --- a/math.js +++ b/math.js @@ -3,7 +3,8 @@ exports.isStar = true; exports.sum = function (a, b) { - return Number(a) + Number(b); + + return a + b; }; From ca7fa59d04f4c857e1c4bd1d518fc240ca70de59 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:49:16 +0500 Subject: [PATCH 09/14] Update math.js --- math.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/math.js b/math.js index 55b5a53..d205a41 100644 --- a/math.js +++ b/math.js @@ -3,8 +3,7 @@ exports.isStar = true; exports.sum = function (a, b) { - - return a + b; + return a + b; }; From 8d821e2066d75e4eba6a0f51385dfb4ce59fc378 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 07:52:46 +0500 Subject: [PATCH 10/14] Update math.js --- math.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/math.js b/math.js index d205a41..e5a766b 100644 --- a/math.js +++ b/math.js @@ -5,6 +5,3 @@ exports.isStar = true; exports.sum = function (a, b) { return a + b; }; - - - From 5317a17210dea2731cf5b12d4edd2dacda3cc6b2 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 08:02:29 +0500 Subject: [PATCH 11/14] Update math.js --- math.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/math.js b/math.js index e5a766b..47fd871 100644 --- a/math.js +++ b/math.js @@ -3,5 +3,8 @@ exports.isStar = true; exports.sum = function (a, b) { + if (arguments.length == 3) { + return a + b + agruments[2]; + } return a + b; }; From 5c8cd64fdf12f43ccec7ac23c9dc3369f9574464 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 08:02:43 +0500 Subject: [PATCH 12/14] Update math.js --- math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.js b/math.js index 47fd871..6b0abcd 100644 --- a/math.js +++ b/math.js @@ -4,7 +4,7 @@ exports.isStar = true; exports.sum = function (a, b) { if (arguments.length == 3) { - return a + b + agruments[2]; + return a + b + arguments[2]; } return a + b; }; From 0d18f89c4f720f0f9f07620e6e0b07255b0d0e86 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 08:07:43 +0500 Subject: [PATCH 13/14] Update math.js --- math.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/math.js b/math.js index 6b0abcd..287f1c4 100644 --- a/math.js +++ b/math.js @@ -3,8 +3,9 @@ exports.isStar = true; exports.sum = function (a, b) { - if (arguments.length == 3) { - return a + b + arguments[2]; + if (arguments.length === 3) { + return a + b + arguments[2]; } - return a + b; + + return a + b; }; From f9ded7130b25cb47b3aa245f0e49f655d6b9d478 Mon Sep 17 00:00:00 2001 From: Raseen7 <32290423+Raseen7@users.noreply.github.com> Date: Mon, 8 Oct 2018 08:10:28 +0500 Subject: [PATCH 14/14] Update math.js --- math.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math.js b/math.js index 287f1c4..8961d86 100644 --- a/math.js +++ b/math.js @@ -6,6 +6,6 @@ exports.sum = function (a, b) { if (arguments.length === 3) { return a + b + arguments[2]; } - - return a + b; + + return a + b; };