javascript-objects Flashcards
1
Q
What are objects used for?
A
To keep related stuff together
Model real life objects
2
Q
What are object properties?
A
exclusive variables, another way to store data (exclusive for objects)
3
Q
Describe object literal notation.
A
object literal with curly braces and key:values,
4
Q
How do you remove a property from an object?
A
Delete operator
5
Q
What are the two ways to get or update the value of a property?
A
dot and bracket notation. (dot is more preferable).