0 votes
in JavaScript by
Which one of the following options is the correct output for the given code of JavaScript?

var pow=newFunction("num1","num2","return Math.pow(num1,num2)");  

document.writeln(pow(2,3));  

a) 8

b) 3

c) 6

d) Error

1 Answer

0 votes
by

Answer: A

Reason: The "pow()" method used in the above code is one of the built-in methods which are available in the math's library of the JavaScript . This methodaccepts two arguments in which the power of the first argument is calculated with respect to the other argument.

...