Consider the following code snippet
function hypotenuse(a, b)
{

Home | Discussion Forum
Taiyari24Hour

Consider the following code snippet

function hypotenuse(a, b)
{
function square(x)
{
return x*x;
}
return Math.sqrt(square(a) + square(b));
}

What does the above code result?



View More Related Question

2) When does the function name become optional in JavaScript?

3) What is the purpose of a return statement in a function?

4) Consider the following code snippet

o.m(x,y);

Which is an equivalent code for the above code snippet?

5) Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.