We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c446bf commit a18994bCopy full SHA for a18994b
js-core/homeworks/homework-7/src/main.js
@@ -71,7 +71,7 @@ function methodCounter2(obj, name, num, fn) {
71
let counter = num;
72
obj[name] = function(...args) {
73
if(counter > 0) {
74
- counter -= 1;
+ counter--;
75
return `Call number ${counter + 1}, sum of arguments = ${fn(args)}`;
76
} else {
77
return 'ERROR ! add more methods';
0 commit comments