Question: What will this code print? object function math(operation, x) { const OPERATIONS : (a, b) => a . b. */': (a, b) => a/b. (a,
What will this code print? object function math(operation, x) { const OPERATIONS : (a, b) => a . b. */': (a, b) => a/b. (a, b) => a + b. -': (a, b) => a - b. return function(y) [ return OPERATIONS[operation](x, y): o function function const mul - math(", 5); const add math .". mul(2) : O An error will occur. The expression math(",", 25)(20) is incorrect. console.log(typeof add); console.log(add(math(".". 25)(20))); O An error will occur. JavaScript functions can't return functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
