JS OBJECTS Flashcards

1
Q

What are objects used for?

A

To store groups of variables and functions

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

What are object properties?

A

Variables grouped under an object

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

Describe object literal notation.

A
object = {
key=value,
key=value,
key=value
}
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

delete

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

dot notation ——– object.key = whatever

bracket notation ——— object[‘key’] = whatever

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