How do I push new values to the following array?
json = {\"cool\":\"34.33\",\"alsocool\":\"45454\"}
I tried json.push(\"coolness\":\"
json.push(\"coolness\":\"
object["property"] = value;
or
object.property = value;
Object and Array in JavaScript are different in terms of usage. Its best if you understand them:
Object vs Array: JavaScript