javascript-objects Flashcards
1
Q
What are objects used for?
A
defining a template with multiple key value pair and function which can be performed on them
2
Q
What are object properties?
A
variable in an object is called property
3
Q
Describe object literal notation.
A
The Object literal notation is basically an array of key:value pairs, with a colon separating the keys and values, and a comma after every key:value pair, except for the last, just like a regular array
4
Q
How do you remove a property from an object?
A
delete
5
Q
What are the two ways to get or update the value of a property?
A
dot notation or bracket notation