Answer: Object
Answer: Object
Answer: Prototype, class, object’s extensible flag
Article and Schedule Quiz | Start Test! |
var book = { "main title": "JavaScript", 'sub-title': "The Definitive Guide", "for": "all audiences", author: { firstname: "David", surname: "Flanagan" } };
Answer: property names
Answer: prototype chain
book[datatype]=assignment_value;
Answer: A String
Answer: isPrototypeOf() method
function f() {};
Answer: A custom constructor
Answer: “lock down” objects into a known state and prevent outside tampering
o = {x:1, y:{z:[false,null,""]}};
s = JSON.stringify(o);
p = JSON.parse(s);
Answer: Object Serialization
Answer: return a localized string representation of the object
const object1 = {}; a = Symbol('a'); b = Symbol.for('b'); object1[a] = 'harry'; object1[b] = 'derry';> const objectSymbols = Object.getOwnPropertySymbols(object1); console.log(objectSymbols.length);
Answer: 2
const obj1 = { property1: 21 } const descriptor1 = Object.getOwnPropertyDescriptor(obj1, 'property1'); console.log(descriptor1.configurable); console.log(descriptor1.enumerable);
Answer: true true
const obj1 = { property1: '10'};
const obj2 = Object.freeze(obj1);
obj2.property1 = '20';
console.log(obj2.property1);
Answer: 10
const object1 = { property1: 20 }; console.log(Object.is(object1));
Answer: false
const obj = {prop: 12}; Object.preventExtensions(obj); console.log( Object.isExtensible(obj));
Answer: false