Skip to content

Commit a18994b

Browse files
correction
1 parent 3c446bf commit a18994b

File tree

1 file changed

+1
-1
lines changed
  • js-core/homeworks/homework-7/src

1 file changed

+1
-1
lines changed

js-core/homeworks/homework-7/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function methodCounter2(obj, name, num, fn) {
7171
let counter = num;
7272
obj[name] = function(...args) {
7373
if(counter > 0) {
74-
counter -= 1;
74+
counter--;
7575
return `Call number ${counter + 1}, sum of arguments = ${fn(args)}`;
7676
} else {
7777
return 'ERROR ! add more methods';

0 commit comments

Comments
 (0)