Object Flashcards

1
Q

Object.create()

A

Create an object with specified prototype and properties.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Object.defineProperties()

A

Create or configure multiple properties on a given object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Object.defineProperty()

A

Create or configure a single property on a given object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Object.freeze()

A

Make an object immuntable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Object.getOwnPropertyDescriptor()

A

Query property attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Object.getOwnPropertyNames()

A

Return the names of non-inherited properties.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Object.getPrototypeOf()

A

Return the prototype of an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Object.hasOwnProperty()

A

Check whether a property is inherited.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Object.isExtensible()

A

Check whether new properties can be added to an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Object.isFrozen()

A

Check whether an object is immutable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Object.isPrototypeOf()

A

Check whether one object is the prototype of another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Object.isSealed()

A

Check whether properties can be added to or deleted from an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Object.keys()

A

Return an object’s enumerable property names.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Object.preventExtensions()

A

Don’t allow new properties on an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Object.propertyisEnumerable()

A

Check whether an object’s property will be seen by a for/in loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Object.seal()

A

Prevent the addition or deletion of properties.

17
Q

Object.toLocaleString()

A

Return an object’s localized string representation.

18
Q

Object.toString()

A

Define an object’s string representation.

19
Q

Object.valueOf()

A

The primitive value of the specified object.

20
Q

Create an object with specified prototype and properties.

A

Object.create()

21
Q

Create or configure multiple properties on a given object.

A

Object.defineProperties()

22
Q

Create or configure a single property on a given object.

A

Object.defineProperty()

23
Q

Make an object immuntable.

A

Object.freeze()

24
Q

Query property attributes

A

Object.getOwnPropertyDescriptor()

25
Return the names of non-inherited properties.
Object.getOwnPropertyNames()
26
Return the prototype of an object.
Object.getPrototypeOf()
27
Check whether a property is inherited.
Object.hasOwnProperty()
28
Check whether new properties can be added to an object.
Object.isExtensible()
29
Check whether an object is immutable.
Object.isFrozen()
30
Check whether one object is the prototype of another.
Object.isPrototypeOf()
31
Check whether properties can be added to or deleted from an object.
Object.isSealed()
32
Return an object's enumerable property names.
Object.keys()
33
Don't allow new properties on an object.
Object.preventExtensions()
34
Check whether an object's property will be seen by a for/in loop.
Object.propertyisEnumerable()
35
Prevent the addition or deletion of properties.
Object.seal()
36
Return an object's localized string representation.
Object.toLocaleString()
37
Define an object's string representation.
Object.toString()
38
The primitive value of the specified object.
Object.valueOf()