Object Flashcards
1
Q
bracket notation
A
object[‘property’]
let functionName = objectParam => { objectParam['Property Name'] = 'New Property Value'; };
2
Q
dot notation
A
object.property
let functionName = objectParam => { objectParam.propertyName = 'A Property Value'; };