From d3cf3109d768e34b4c504c62290491d3e6583c84 Mon Sep 17 00:00:00 2001 From: jjjiL0ng Date: Thu, 26 Sep 2024 20:08:46 +0900 Subject: [PATCH 1/2] a-4 --- FE/Calculator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FE/Calculator.js b/FE/Calculator.js index 8491fbc..b06ffa9 100644 --- a/FE/Calculator.js +++ b/FE/Calculator.js @@ -1,5 +1,7 @@ class Calculator { static add(a, b) { + b = b +3; + a = a- 4; return a + b; } } From b0610f74dca1a08c35a90dc2b86950d3a957a0b7 Mon Sep 17 00:00:00 2001 From: jjjiL0ng Date: Thu, 26 Sep 2024 20:13:31 +0900 Subject: [PATCH 2/2] fix:a =b*2 --- FE/Calculator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FE/Calculator.js b/FE/Calculator.js index b06ffa9..1d02000 100644 --- a/FE/Calculator.js +++ b/FE/Calculator.js @@ -2,6 +2,8 @@ class Calculator { static add(a, b) { b = b +3; a = a- 4; + a =b*2; + b = a/4; return a + b; } }