javascript-objects Flashcards

1
Q

What are objects used for?

A

Group together a set of variables and functions to create a model of 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 part of an object; tell us about the object

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

Describe object literal notation.

A

Variable keyword, object name, assignment operator, curly braces and property value pairs (separated by commas) inside the curly braces

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 keyword followed by the object name and property name

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.property) and bracket notation (object[‘property’]) assigned to the value

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