Skip to content

Commit f983992

Browse files
authored
Merge pull request #2077 from sanghyo95/patch-1
add semicolon
2 parents c28563b + 3b71f76 commit f983992

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)