javascript-objects Flashcards

1
Q

What are objects used for?

A

Objects are used for representing things, storing properties, and storing methods.

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

What are object properties?

A

Object properties are variables that only exist in the scope of the object.

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

Describe object literal notation.

A

Object literal notation is the creation of an object without using the new Object() phrase. It involves curly braces with or without content being assigned to a variable.

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

To remove a property from an object the keyword delete is used followed by the object variable name, the member operator (.), then the property name. This process works for substituting methods for properties.

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

Two ways to update or get the value of a property is the dot notation or the bracket notation. The bracket notation cannot call methods, so typically the dot notation is preferred.

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