SyntaxFix
Write A Post
Hire A Developer
Questions
d = {} is an empty object right now. And d[a] is also an empty object.
d = {} is an empty object right now.
And d[a] is also an empty object.
It does not have any key values. So you should initialize the key values to this.
d[a] = { greetings:'', data:'' }