How do I add a new key:value pair in existing JavaScript object?
- by basit74
I have a JavaScript object like:
appointerment= {ids: '15,16,17', appointments: {'15': '12.05.2010,14,05,2010'} }
now in appointments object I want to add something like '16': '21.05.2010'
what is the best possible way to do this?