Consider the following code snippet
o.m(x,y);
Which is an e
Home | Discussion Forum
Consider the following code snippet
o.m(x,y);
Which is an equivalent code for the above code snippet?
o.m(x) && o.m(y);
o["m"](x,y);
o(m)["x","y"];
o.m(x && y);
Answer : B
View More Related Question
1) 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?
var strict = (function { return this; });
mode strict = (function() { return !this; }());
var strict = (function() { return !this; }());
mode strict = (function { });
View Answer
2) For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
3) Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?
4) The function definitions in JavaScript begins with
Identifier and Parantheses
Return type and Identifier
Return type, Function keyword, Identifier and Parantheses
Identifier and Return type
View Answer
5) Consider the following code snippet
function printprops(o)
{
for(var p in o)
console.log(p + ": " + o[p] + "\n");
}
What will the above code snippet result ?
Prints the contents of each property of o
Returns undefined
All of the mentioned
None of the mentioned
View Answer