From 324b7bbab42d2bf28c8306ff8a98725fa9a649a0 Mon Sep 17 00:00:00 2001 From: Raed <abdennadher.raed@gmail.com> Date: Mon, 18 Nov 2019 13:48:12 +0100 Subject: [PATCH] Fix error in addition implementation --- compute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute.js b/compute.js index 23d222c..587f28d 100644 --- a/compute.js +++ b/compute.js @@ -11,7 +11,7 @@ function Compute() { */ // TODO: modify with the correct operator // We intentionally kept this mistake: * operator instead of + operator - this.add = (a, b) => Number(a) * Number(b); + this.add = (a, b) => Number(a) + Number(b); /** * @method sub * @desc Calculate the difference between two numbers -- GitLab