javascript-objects Flashcards
1
Q
What are objects used for?
A
they are used for grouping together a set of variables and functions with property values and methods; used to model real-life objects
2
Q
What are object properties?
A
properties are variables that are part of an object; objects can store any data types
3
Q
Describe object literal notation.
A
{}; opening and closing curly braces
4
Q
What are the two ways to get or update the value of a property?
A
using the dot notation and bracket notation
5
Q
How do you remove a property from an object?
A
delete operator