DEV Community

Discussion on: Day 8 : Learning JS

Collapse
 
gauravshekhawat profile image
Gaurav-Shekhawat

The summary being that if your key value is stored in another variable , then you cannot use the dot syntax to access the property, and you have to use the [ box ] syntax