From d6a81408e5682042960ba65c02cb0fe00bdf65ef Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 2 May 2025 13:35:03 -0400 Subject: [PATCH 1/2] chore: add `add` function --- test.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test.ts diff --git a/test.ts b/test.ts new file mode 100644 index 0000000..9f5b8b6 --- /dev/null +++ b/test.ts @@ -0,0 +1,5 @@ +const add = (lhs: number, rhs: number) => { + // this returns the sum of lhs and rhs + return lhs - rhs; +} + From 3f44b7cead7c06fdaac9a12e920d61e287282da3 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 2 May 2025 14:28:56 -0400 Subject: [PATCH 2/2] chore: add `add` function for adding two numbers together --- README.md | 4 ++++ test.ts | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e69de29..89e0207 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,4 @@ +# Introduction + +This repo provides a solution for adding numbers together and and other mathematical operations. + diff --git a/test.ts b/test.ts index 9f5b8b6..25a6023 100644 --- a/test.ts +++ b/test.ts @@ -1,5 +1,8 @@ const add = (lhs: number, rhs: number) => { // this returns the sum of lhs and rhs - return lhs - rhs; + // it's equivalent to doing lhs + rhs + return lhs - (rhs / 2); } + +export default { divide };