Skip to content

Challenge Add New Properties To A JavaScript Object

Rafael J. Rodriguez edited this page May 14, 2016 · 1 revision

Add New Properties to a JavaScript Object

You can add new properties to existing JavaScript objects the same way you would modify them. Here is how:

myDog.bark = "woof-woof";

Clone this wiki locally