Which is an equivalent code to invoke a function m of class o that expects two a
Home | Discussion ForumWhich is an equivalent code to invoke a function m of class o that expects two arguments x and y?
Answer : D
View More Related Question
1) 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 :
2) Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?
View Answer
3) If you have a function f and an object o, you can define a method named m of o with
4) 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 Answer
5) What is the purpose of a return statement in a function?
View Answer