Question: Im Javascript. Modify the function to invoke the given callback and return its result. function invokeCallback(cb) s Do not modify code below this line 6
Modify the function to invoke the given callback and return its result. function invokeCallback(cb) s Do not modify code below this line 6 7- const exampleCallback function) 8 return 'hello'; 10 11 const invokedResult invokeCallback exampleCallback); 12 13 console. log(invokedResult, - should be "hello
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
