Solved

Match the Following Object Properties/methods to Their Respective Descriptions

Question 62

Matching

Match the following object properties/methods to their respective descriptions.

Premises:
Returns the value of object as a text string, number, Boolean value, undefined, or null
Defines or modifies the properties, prop , for the object, obj
Returns true if object has the specified property, prop
Returns an array of the enumerable properties found in obj
References the prototype of the object, obj
Returns true if the prop property is enumerable
Returns true if object exists in object obj prototype chain
References the constructor function that creates object
Returns true if obj is frozen
Creates an object using the prototype, proto ; where properties is an optional list of properties added to the object
Responses:
Object.defineProperties(obj, props)
Object.keys(obj)
object.valueOf()
Object.isFrozen(obj)
object.hasOwnProperty(prop)
Object.getPrototypeOf(obj)
object.constructor
object.isPrototypeOf(obj)
object.propertyIsEnumerable(prop)
Object.create(proto, properties)

Correct Answer:

Returns the value of object as a text string, number, Boolean value, undefined, or null
Defines or modifies the properties, prop , for the object, obj
Returns true if object has the specified property, prop
Returns an array of the enumerable properties found in obj
References the prototype of the object, obj
Returns true if the prop property is enumerable
Returns true if object exists in object obj prototype chain
References the constructor function that creates object
Returns true if obj is frozen
Creates an object using the prototype, proto ; where properties is an optional list of properties added to the object
Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents