Skip to content

Commit 3b71f76

Browse files
authored
add semicolon
add semicolon 13,20 line
1 parent b85413d commit 3b71f76

File tree

1 file changed

+2
-2
lines changed
  • 1-js/05-data-types/05-array-methods/6-calculator-extendable/_js.view

1 file changed

+2
-2
lines changed

1-js/05-data-types/05-array-methods/6-calculator-extendable/_js.view/solution.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ function Calculator() {
1010
let split = str.split(' '),
1111
a = +split[0],
1212
op = split[1],
13-
b = +split[2]
13+
b = +split[2];
1414

1515
if (!this.methods[op] || isNaN(a) || isNaN(b)) {
1616
return NaN;
1717
}
1818

1919
return this.methods[op](a, b);
20-
}
20+
};
2121

2222
this.addMethod = function(name, func) {
2323
this.methods[name] = func;

0 commit comments

Comments
 (0)