Javascript Objects Flashcards
1
Q
What are objects used for?
A
holds multiple values in terms of properties and methods
2
Q
What are object properties?
A
stores a literal value and method represents function
3
Q
Describe object literal notation.
A
an array of key:value pairs, with a colon separating the keys and values,
4
Q
How do you remove a property from an object?
A
delete then the property
5
Q
What are the two ways to get or update the value of a property?
A
writing the object then the value