a) return a localised object representation b) return a parsed string c) return a local time in the string ...
View Question
Identify the process done in the following JavaScript code snippet?
o = {x:1, y:{z:[false,null,””]}};
s = JSON.stringify(o);
p = JSON.parse(s);
Identify the process done in the following JavaScript code snippet? o = {x:1, y:{z:[false,null,""]}}; s = JSON.stringify(o); ...
View QuestionThe purpose of extensible attribute is to __________
a) make all of the own properties of that object non configurable b) to configure and ...
View Question
What is the prototype represents in the following JavaScript code snippet?
function f() {};
What is the prototype represents in the following JavaScript code snippet? function f() {}; a) Function f
View QuestionTo determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the ____________
To determine whether one object is the prototype of (or is part of the prototype chain of) another ...
View Question
In the following syntax, the data type within the square brackets must be ___________
book[datatype]=assignment_value;
In the following syntax, the data type within the square brackets must be ___________ book[datatype]=assignment_value; a) An ...
View QuestionA linkage of series of prototype objects is called as ________
a) prototype stack b) prototype chain c) prototype class d) prototypes Answer: b Explanation: Consider an example, Date.prototype inherits ...
View Question
What will be the firstname and surname of the following JavaScript code?
var book = {
“main title”: “JavaScript”,
‘sub-title’: “The Definitive Guide”,
“for”: “all audiences”,
author: {
firstname: “David”,
surname: “Flanagan”
}
};
What will be the firstname and surname of the following JavaScript code? var book = { ...
View QuestionThe object has three object attributes namely ________
a) Class, parameters, object’s extensible flag b) Prototype, class, objects’ parameters c) Prototype, class, object’s extensible flag d) Native object, ...
View QuestionThe unordered collection of properties, each of which has a name and a value is called _________
a) String b) Object c) Serialized Object d) Array Answer: b Explanation: Objects in ...
View Question