From 4751348961d1f624aba09d5e415425f539079000 Mon Sep 17 00:00:00 2001 From: jissssu <113964353+jissssu@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:20:35 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20App.js,=20Counter.jsx=20=EB=AF=B8?= =?UTF-8?q?=EC=85=98=20=EC=88=98=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 9 ++++++--- src/components/Counter.jsx | 22 ++++++++++++++-------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/App.js b/src/App.js index 09a9098..a372892 100644 --- a/src/App.js +++ b/src/App.js @@ -3,16 +3,19 @@ import Counter from './components/Counter'; import TestCase from './components/TestCase'; function App() { - //-3을 해주는 decrement도 만들어주세요~ + //-3을 해주는 decrement도 만들어주세요! + function increment(n) { return n + 1; } increment.toString = () => 'n => n+1'; function decrement(n) { - return; + return n - 3; } - decrement.toString = () => ''; + decrement.toString = () => 'n => n-3'; + + return (