add semicolon

add semicolon 13,20 line
This commit is contained in:
sanghyo95 2020-08-24 08:54:34 +09:00 committed by GitHub
parent b85413d0bd
commit 3b71f769a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,14 +10,14 @@ function Calculator() {
let split = str.split(' '),
a = +split[0],
op = split[1],
b = +split[2]
b = +split[2];
if (!this.methods[op] || isNaN(a) || isNaN(b)) {
return NaN;
}
return this.methods[op](a, b);
}
};
this.addMethod = function(name, func) {
this.methods[name] = func;