JavaScript Objects Flashcards

1
Q

What are objects used for?

A

store varius data types in a specific keyed collection to make a more complex value

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

What are object properties?

A

values associated with the object created

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

Describe object literal notation.

A

array of key:value pairs that are separated by a comma and begin with a curly bracket and end with a curly bracket

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

How do you remove a property from an object?

A

use the delete key word Infront of the object key / property

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

What are the two ways to get or update the value of a property?

A

using bracket notation and adding or changing the key word to something that exists or doesn’t exist or by using the dot notation in the same way.

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