javascript-objects Flashcards
1
Q
What are objects used for?
A
Objects group together a set of variables and functions
2
Q
What are object properties?
A
The variables which are part of an object.
3
Q
Describe object literal notation.
A
var + var name assigned to + object
Object is the curly braces and their contents.
4
Q
How do you remove a property from an object?
A
Use delete keyword followed by the object
5
Q
What are the two ways to get or update the value of a property?
A
dot notation or square bracket