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));
}
β
Correct Answer: (C)
Sum of square of p and q