Painting Blue Code
Simple, self-explanatory code snippets.
2015-04-06
Javascript - How to add properties to an existing object
var myObject = { };
myObject["myProperty"] = {};
myObject["myProperty"]["mySubProperty"] = "mySubProperty value.";
console.log( myObject );
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment