From f592dd5d20c3ab3bc19ce3f240836daa517c7b3f Mon Sep 17 00:00:00 2001 From: Code$izzler <30734357+CodeSizzler@users.noreply.github.com> Date: Tue, 6 Sep 2022 14:58:48 +0530 Subject: [PATCH] Modifying the add function --- api/controllers/arithmeticController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/arithmeticController.js b/api/controllers/arithmeticController.js index 0fccf513d7..b80bd87ac7 100644 --- a/api/controllers/arithmeticController.js +++ b/api/controllers/arithmeticController.js @@ -11,7 +11,7 @@ exports.calculate = function(req, res) { }); var operations = { - 'add': function(a,b) { return +a + +b }, + 'add': function(a,b) { return a + b }, 'subtract': function(a,b) { return a - b }, 'multiply': function(a,b) { return a * b }, 'divide': function(a,b) { return a / b },