Update ex 3

This commit is contained in:
LSvekis
2021-06-28 17:01:55 -04:00
committed by GitHub
parent eeddb2b206
commit 3985643e28
+2 -6
View File
@@ -7,10 +7,6 @@
myArr.push(res); myArr.push(res);
} }
console.log(myArr); console.log(myArr);
function cal(a, b, op) { function cal(a, b) {
if (op == "-") { return a + b;
return a - b;
} else {
return a + b;
}
} }