Analyze the following code:
function execute(todo, a, b) { return todo(a, b); } console.log(execute(power, 3, 2));
Before declaring the function, we should add one more line of code. Which one, if the execution of the completed code will result in the console displaying the value 9
?
let power = () => a ** b;
let power = (x, y) => x ** y;
let power = (x,y) => x * y;
let power = 9;
More Questions: JavaScript Essentials 1 – JSE1: Final Test
Please login or Register to submit your answer