Matching
Match the following object properties/methods to their respective descriptions.
Premises:
Creates an object using the prototype, proto ; where properties is an optional list of properties added to the object
Returns the value of object as a text string, number, Boolean value, undefined, or null
Returns an array of the enumerable properties found in obj
Returns true if obj is frozen
References the prototype of the object, obj
References the constructor function that creates object
Returns true if the prop property is enumerable
Returns true if object exists in object obj prototype chain
Defines or modifies the properties, prop , for the object, obj
Returns true if object has the specified property, prop
Responses:
object.valueOf()
Object.keys(obj)
object.hasOwnProperty(prop)
Object.isFrozen(obj)
object.isPrototypeOf(obj)
Object.defineProperties(obj, props)
object.propertyIsEnumerable(prop)
Object.create(proto, properties)
Object.getPrototypeOf(obj)
object.constructor
Correct Answer:
Premises:
Responses:
Creates an object using the prototype, proto ; where properties is an optional list of properties added to the object
Returns the value of object as a text string, number, Boolean value, undefined, or null
Returns an array of the enumerable properties found in obj
Returns true if obj is frozen
References the prototype of the object, obj
References the constructor function that creates object
Returns true if the prop property is enumerable
Returns true if object exists in object obj prototype chain
Defines or modifies the properties, prop , for the object, obj
Returns true if object has the specified property, prop
Premises:
Creates an object using the prototype, proto ; where properties is an optional list of properties added to the object
Returns the value of object as a text string, number, Boolean value, undefined, or null
Returns an array of the enumerable properties found in obj
Returns true if obj is frozen
References the prototype of the object, obj
References the constructor function that creates object
Returns true if the prop property is enumerable
Returns true if object exists in object obj prototype chain
Defines or modifies the properties, prop , for the object, obj
Returns true if object has the specified property, prop
Responses:
Related Questions
Q60: Which of the following commands is used
Q61: Refer to the following code snippet and
Q62: In an object literal, each _ pair
Q63: Match the following object properties/methods to their
Q64: Case-Based Critical Thinking Questions Case 13-4 Edward
Q66: Identify the general syntax of the object
Q67: Which of the following objects is also
Q68: Identify the advantage of using JavaScript's built-in
Q69: Identify the expression used to reference a
Q70: Case-Based Critical Thinking Questions Case 13-2 Michelle