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
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.