Y

Yashika • 3.75K Points
Extraordinary

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));  
  • (A) 8
  • (B) 3
  • (C) 6
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 164
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics