From 6b44ccbb0c422a266a8d5f3aac0c4ca682cce0d8 Mon Sep 17 00:00:00 2001 From: Tassadar2499 <34176883+Tassadar2499@users.noreply.github.com> Date: Mon, 8 Oct 2018 23:28:48 +0500 Subject: [PATCH 1/5] ga --- 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 6a5ddcded47a231209926cbdd4609e06eaf92547 Mon Sep 17 00:00:00 2001 From: Tassadar2499 <34176883+Tassadar2499@users.noreply.github.com> Date: Mon, 8 Oct 2018 23:36:31 +0500 Subject: [PATCH 2/5] 2commit --- 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 34416803c8c02807008a2a59f613f3b98fc1cedf Mon Sep 17 00:00:00 2001 From: Tassadar2499 <34176883+Tassadar2499@users.noreply.github.com> Date: Mon, 8 Oct 2018 23:43:19 +0500 Subject: [PATCH 3/5] 3 sum numbers --- math.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math.js b/math.js index e5a766b..61da714 100644 --- a/math.js +++ b/math.js @@ -2,6 +2,6 @@ exports.isStar = true; -exports.sum = function (a, b) { - return a + b; +exports.sum = function (a, b, c) { + return a + b + c; }; From 3b8561a0b4a648fb62990f16f3fc7e9c17b035ae Mon Sep 17 00:00:00 2001 From: Tassadar2499 <34176883+Tassadar2499@users.noreply.github.com> Date: Mon, 8 Oct 2018 23:50:56 +0500 Subject: [PATCH 4/5] a + b --- math.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math.js b/math.js index 61da714..2a026aa 100644 --- a/math.js +++ b/math.js @@ -2,6 +2,6 @@ exports.isStar = true; -exports.sum = function (a, b, c) { - return a + b + c; +exports.sum = function (a, b) { + return parseInt(a) + parseInt(b); }; From a3df4cba2051ec4ca4a451944994c5efd319eead Mon Sep 17 00:00:00 2001 From: Tassadar2499 <34176883+Tassadar2499@users.noreply.github.com> Date: Mon, 8 Oct 2018 23:54:29 +0500 Subject: [PATCH 5/5] float --- math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.js b/math.js index 2a026aa..85a94d5 100644 --- a/math.js +++ b/math.js @@ -3,5 +3,5 @@ exports.isStar = true; exports.sum = function (a, b) { - return parseInt(a) + parseInt(b); + return parseFloat(a) + parseFloat(b); };