javascript-objects Flashcards

1
Q

What are objects used for?

A

Group together sets of variables and functions to create a model of something.

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

What are object properties?

A

Describe some aspect of the object (i.e. “color” of a car)

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

Describe object literal notation.

A

Object stored in a variable, and within curly braces, you have the properties that contain a key with its value separated by a colon, and each property separated with a comma (but not after the last 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

Keyword Delete object.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

Dot notation or by using brackets

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