If you have a function f and an object o, you can define a method named m of o

Home | Discussion Forum
Taiyari24Hour

If you have a function f and an object o, you can define a method named m of o with



View More Related Question

2) 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?

3) Consider the following code snippet :

var tensquared = (function(x)
{
return x*x;
}
(10));

Will the above code work ?

4) What is the difference between the two lines given below ?

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

5) Do functions in JavaScript necessarily return a value ?

UP Gk Online Test

taiyari24hour.com

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