javascript-objects Flashcards

1
Q

What are objects used for?

A

Model real-life objects, Storing multi-data-typed properties and their values

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

What are object properties?

A

The keyword being assigned a value in an object.

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

Describe object literal notation.

A

They are declared by a variable and assigned an opening and closing braces. All methods and properties go in between the curly braces and are separated by a comma

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

The ‘delete’ property followed by the object name, the dot notation 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? Dot or square bracket notation

A

Dot or square bracket notation

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