I try to use dot notation to access and update the value but…
why CANT i use dont notation to update the value?
and in the solution it used bracket notation instead.
I might be confused or misunderstand something please help me figure this out.
// Only change code below this line
function updateRecords(records, id, prop, value) {
records[id][prop] = value; <<
records.id.prop=value; <<
return records;
}
"