Update ex 3
This commit is contained in:
+2
-6
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user