Object Flashcards

1
Q

bracket notation

A

object[‘property’]

let functionName = objectParam => {
  objectParam['Property Name'] = 'New Property Value';
};
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

dot notation

A

object.property

let functionName = objectParam => {
  objectParam.propertyName = 'A Property Value';
};
How well did you know this?
1
Not at all
2
3
4
5
Perfectly