Javascript-Objects Flashcards
What are objects used for?
Objects are used for grouping multiple variables, their values, and functions that share a similar theme to the variable the object is assigned to
What are object properties?
Object properties are variable names and their values
Describe object literal notation.
Object literal notation groups variables and their values known as properties as well as functions known as methods within curly brackets and assigns it to a declared variable.
How do you remove a property from an object?
use the delete keyword followed by the object name and property name using dot notation
What are the two ways to get or update the value of a property?
bracket notation and dot notation