JavaScript Objects Flashcards
1
Q
What are objects used for?
A
store varius data types in a specific keyed collection to make a more complex value
2
Q
What are object properties?
A
values associated with the object created
3
Q
Describe object literal notation.
A
array of key:value pairs that are separated by a comma and begin with a curly bracket and end with a curly bracket
4
Q
How do you remove a property from an object?
A
use the delete key word Infront of the object key / property
5
Q
What are the two ways to get or update the value of a property?
A
using bracket notation and adding or changing the key word to something that exists or doesn’t exist or by using the dot notation in the same way.