If you have a function f and an object o, you can define a method named m of o
Home | Discussion ForumIf you have a function f and an object o, you can define a method named m of o with
Answer : A
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) Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :
3) For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
4) 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
5) Consider the following code snippet :
var tensquared = (function(x)
{
return x*x;
}
(10));
Will the above code work ?