myobj = {} ;
myobj['worngWrod'] = 'SelectedWord ' ;
I would like to accept duplicate properties
for example
here if the worngWord property gets duplicated I don't want to overwrite it
any way to do so?
Not really, objects are like hashmaps so keys must be unique
Which value do you want when you access it?
What does duplicated means??
You can make every property a list, and just push to the lists?
Solved?
Обсуждают сегодня