A
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));
}
{
function square(n)
{
return n*n;
}
return Math.sqrt(square(p) + square(q));
}
- Correct Answer - Option(C)
- Views: 20
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.