For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
var o = Object();
var o;
var o= new Object;
Object o=new Object();
Answer : C
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) If you have a function f and an object o, you can define a method named m of o with
3) Consider the following code snippet
o.m(x,y);
Which is an equivalent code for the above code snippet?
4) 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
5) A function with no return value is called