javascript-objects Flashcards
1
Q
What are objects used for?
A
Group together sets of variables and functions to create a model of something.
2
Q
What are object properties?
A
Describe some aspect of the object (i.e. “color” of a car)
3
Q
Describe object literal notation.
A
Object stored in a variable, and within curly braces, you have the properties that contain a key with its value separated by a colon, and each property separated with a comma (but not after the last value)
4
Q
How do you remove a property from an object?
A
Keyword Delete object.property
5
Q
What are the two ways to get or update the value of a property?
A
Dot notation or by using brackets