From 3b71f769a7a30ad8f2d985077ec488fc6b2a7ce4 Mon Sep 17 00:00:00 2001 From: sanghyo95 <49065541+sanghyo95@users.noreply.github.com> Date: Mon, 24 Aug 2020 08:54:34 +0900 Subject: [PATCH] add semicolon add semicolon 13,20 line --- .../6-calculator-extendable/_js.view/solution.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/05-data-types/05-array-methods/6-calculator-extendable/_js.view/solution.js b/1-js/05-data-types/05-array-methods/6-calculator-extendable/_js.view/solution.js index 45ef1619..f62452a5 100644 --- a/1-js/05-data-types/05-array-methods/6-calculator-extendable/_js.view/solution.js +++ b/1-js/05-data-types/05-array-methods/6-calculator-extendable/_js.view/solution.js @@ -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;