JS Objects Flashcards
1
Q
What are objects used for?
A
group together a set of variables and functions to create a model of a something
2
Q
What are object properties?
A
Variables stored within an object or keywords for information within an object
3
Q
Describe object literal notation.
A
variable
Object (curly braces)
keys and values separated with :
commas between each property or method
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 notation
Bracket notation