javascript-objects Flashcards

1
Q

What are objects used for?

A

they are used for grouping together a set of variables and functions with property values and methods; used to model real-life objects

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

What are object properties?

A

properties are variables that are part of an object; objects can store any data types

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

Describe object literal notation.

A

{}; opening and closing curly braces

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

What are the two ways to get or update the value of a property?

A

using the dot notation and bracket notation

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

How do you remove a property from an object?

A

delete operator

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