A

Admin • 833K Points
Coach

Q. Consider the following code snippet.
What will be the result of this code?

Code:
function hypotenuse(p, q)
{
function square(n)
{
return n*n;
}
return Math.sqrt(square(p) + square(q));
}
  • (A) Square of sum of p and q
  • (B) Sum of p and q square
  • (C) Sum of square of p and q
  • (D) All of above
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category JavaScript
  • Hashtags:

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.