Skip to content

Commit

Permalink
Fix sum fn
Browse files Browse the repository at this point in the history
  • Loading branch information
FarazPatankar authored Aug 15, 2024
1 parent ae99ceb commit 7ab3358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const sum = (a: number, b: number) => {
const total = a + b - 1;
const total = a + b;
console.log('The total is: ', total);

return total;
Expand Down

0 comments on commit 7ab3358

Please sign in to comment.