a) objects inherit prototype properties even in a dynamic state b) objects inherit prototype properties only in a ...
View QuestionThe basic difference between JavaScript and Java is _________
a) There is no difference b) Functions are considered as fields c) Variables are specific d) Functions are values, and ...
View Question
What will be the output of the following JavaScript code?
var o = new F();
o.constructor === F
What will be the output of the following JavaScript code? var o = new F(); o.constructor === F
View QuestionThe keyword or the property that you use to refer to an object through which they were invoked is _________
a) from b) to c) this d) object Answer: c Explanation: ‘this’ keyword is used to refer to ...
View QuestionThe behaviour of the instances present of a class inside a method is defined by __________
a) Method b) Classes c) Interfaces d) Classes and Interfaces Answer: b Explanation: Objects of the class are also ...
View Question
What will be the output of the following JavaScript code?
var a=225;
document.writeln(Math.sqrt(a));
What will be the output of the following JavaScript code? var a=225; document.writeln(Math.sqrt(a)); a) 225 b) ...
View Question
What will be the output of the following JavaScript code?
var a=2.99;
var ans=floor(a)*floor(a)
console.log(ans);
What will be the output of the following JavaScript code? var a=2.99; var ans=floor(a)*floor(a) console.log(ans); a) 9
View Question
What will be the output of the following JavaScript code?
var a=3.7;
var b=2;
a=ciel(a)
document.writeIn(a*b);
What will be the output of the following JavaScript code? var a=3.7; var b=2; a=ciel(a) document.writeIn(a*b); a) ...
View Question
What will be the output of the following JavaScript code?
var add=new Function(“num1″,”num2″,”return num1+num2”);
document.writeln(add(2,5));
What will be the output of the following JavaScript code? var add=new Function("num1","num2","return num1+num2"); document.writeln(add(2,5)); a) ...
View Question
What will be the output of the following JavaScript code?
var arr = [7, 5, 9, 1];
var min = Math.min.apply(null, arr);
document.writeln(min);
What will be the output of the following JavaScript code? var arr = [7, 5, 9, 1]; ...
View Question