Javascript Objects Flashcards
1
Q
What are objects used for?
A
to store multiple pieces of data
2
Q
What are object properties?
A
association between property and value
3
Q
Describe object literal notation.
A
var (name) {
(property) : (value)
}
4
Q
How do you remove a property from an object?
A
delete (object).(property)
5
Q
What are the two ways to get or update the value of a property?
A
(object).(property) = (value)
object.[(property)] = (value)