Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
1luki9901 committed Sep 27, 2024
1 parent a746bc0 commit dd20f25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/makeRobotAccountant.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function makeRobotAccountant() {
// write code here
let callCounter = 0;

const getSum = (num) => {
return (num) => {
return (secondnumber) => {
callCounter++;

Expand All @@ -20,8 +20,6 @@ function makeRobotAccountant() {
return num + secondnumber;
};
};

return getSum;
}

module.exports = makeRobotAccountant;

0 comments on commit dd20f25

Please sign in to comment.