javascript-objects Flashcards

1
Q

What are objects used for?

A

Objects group together a set of variables and functions to create a model
of a something you would recognize from the real world.

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

What are object properties?

A

Variables that are inside object. Properties tell us about the object, such as
the name of a hotel or the number of rooms it has.
Each individual hotel might have a different name
and a different number of rooms.

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

Describe object literal notation

A

list of expressions
Properties (variables in objects) + methods (funcitons)

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 method

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 and bracket notation

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