Q. Which one of the following options is the correct output for the given code of JavaScript?
Code:
var pow=newFunction("num1","num2","return Math.pow(num1,num2)");
document.writeln(pow(2,3));
β
Correct Answer: (A)
8