Javascript-Objects Flashcards

1
Q

What are objects used for?

A

Objects are used for grouping multiple variables, their values, and functions that share a similar theme to the variable the object is assigned to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are object properties?

A

Object properties are variable names and their values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe object literal notation.

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you remove a property from an object?

A

use the delete keyword followed by the object name and property name using dot notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the two ways to get or update the value of a property?

A

bracket notation and dot notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly