diff --git a/chapter 6/ex 3 b/chapter 6/ex 3 index 395b185..84bf1c4 100644 --- a/chapter 6/ex 3 +++ b/chapter 6/ex 3 @@ -7,10 +7,6 @@ myArr.push(res); } console.log(myArr); - function cal(a, b, op) { - if (op == "-") { - return a - b; - } else { - return a + b; - } + function cal(a, b) { + return a + b; }