From 0f538fecae4b129e0e9f19066f7f8d0548404ff2 Mon Sep 17 00:00:00 2001 From: Alessandro Annini Date: Sat, 15 Apr 2023 10:10:59 +0200 Subject: [PATCH] chore: update buggy js script file --- buggy_script.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/buggy_script.js b/buggy_script.js index 76ed038..ad05a00 100644 --- a/buggy_script.js +++ b/buggy_script.js @@ -1,8 +1,14 @@ -const subtractNumbers = (a, b) => a - b; +const subtractNumbers = (a, b) => { + return a - b; +}; -const multiplyNumbers = (a, b) => a * b; +const multiplyNumbers = (a, b) => { + return a * b; +}; -const divideNumbers = (a, b) => a / b; +const divideNumbers = (a, b) => { + return a / b; +}; function calculate(operation, num1, num2) { let result = '';