siva prakas

siva prakas

  • NA
  • 32
  • 13.1k

how to assign values to object with dynamic keys

Mar 24 2018 6:11 AM
Hi i don't know the key name , it can be anything and it can be any number each time so how to assign values to dynamic keys of object
 
for example
obj["anything"] = anything;

Answers (11)