In this challenge, if I write: object.prop = value
, then the object will be:
BUT if I write: object[prop] = value;
, then:
Why?
In this challenge, if I write: object.prop = value
, then the object will be:
BUT if I write: object[prop] = value;
, then:
Why?
dot notation uses exactly what you write, you can’t use it with variables, also note that you need to edit the nested objects