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) What is the difference between the two lines given below ?

  !!(obj1 && obj2); (obj1 && obj2);

3) For the below mentioned code snippet:

var o = new Object();

The equivalent statement is:

4) Consider the following code snippet :

 var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()

The state stored in d is :

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

UP Gk Online Test

taiyari24hour.com

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