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
Q

Return the names of non-inherited properties.

A

Object.getOwnPropertyNames()

26
Q

Return the prototype of an object.

A

Object.getPrototypeOf()

27
Q

Check whether a property is inherited.

A

Object.hasOwnProperty()

28
Q

Check whether new properties can be added to an object.

A

Object.isExtensible()

29
Q

Check whether an object is immutable.

A

Object.isFrozen()

30
Q

Check whether one object is the prototype of another.

A

Object.isPrototypeOf()

31
Q

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

A

Object.isSealed()

32
Q

Return an object’s enumerable property names.

A

Object.keys()

33
Q

Don’t allow new properties on an object.

A

Object.preventExtensions()

34
Q

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

A

Object.propertyisEnumerable()

35
Q

Prevent the addition or deletion of properties.

A

Object.seal()

36
Q

Return an object’s localized string representation.

A

Object.toLocaleString()

37
Q

Define an object’s string representation.

A

Object.toString()

38
Q

The primitive value of the specified object.

A

Object.valueOf()