We have functions created for doing all possible different arithmetic operations on two passed numbers:
function add(a, b){return a + b}
function mul(a, b){return a * b}
...
Now what would be the implementation of wrapper function so wrapper function should do what the third argument asks it to do.
function wrapper(a,b,..){
?
}
for an instance, if i call:
var test = wrapper(4,5,..)
test
value should be based on the third argument