Add JavaScript object attributes
examples/objects/add_object_attribute.js
"use strict"; var email = { "from" : "js@bar.com", "to" : [ "foo@bar.com", "qux@bar.com" ], }; console.log(email); email["text"] = "Content"; console.log(email);
"use strict"; var email = { "from" : "js@bar.com", "to" : [ "foo@bar.com", "qux@bar.com" ], }; console.log(email); email["text"] = "Content"; console.log(email);