In the following example, the <code>Bird</code> constructor defines two properties: <code>name</code> and <code>numLegs</code>:
<blockquote>function Bird(name) {<br> this.name = name;<br> this.numLegs = 2;<br>}<br><br>let duck = new Bird("Donald");<br>let canary = new Bird("Tweety");</blockquote>
<code>name</code> and <code>numLegs</code> are called <code>own</code> properties, because they are defined directly on the instance object. That means that <code>duck</code> and <code>canary</code> each has its own separate copy of these properties.
In fact every instance of <code>Bird</code> will have its own copy of these properties.
The following code adds all of the <code>own</code> properties of <code>duck</code> to the array <code>ownProps</code>:
<blockquote>let ownProps = [];<br><br>for (let property in duck) {<br> if(duck.hasOwnProperty(property)) {<br> ownProps.push(property);<br> }<br>}<br><br>console.log(ownProps); // prints [ "name", "numLegs" ]</blockquote>
</section>
## Instructions
<sectionid='instructions'>
Add the <code>own</code> properties of <code>canary</code> to the array <code>ownProps</code>.
- text: <code>ownProps</code> should include the values <code>"numLegs"</code> and <code>"name"</code>.
testString: 'assert(ownProps.indexOf(''name'') !== -1 && ownProps.indexOf(''numLegs'') !== -1, ''<code>ownProps</code> should include the values <code>"numLegs"</code> and <code>"name"</code>.'');'
- text: Solve this challenge without using the built in method <code>Object.keys()</code>.
testString: 'assert(!/\Object.keys/.test(code), ''Solve this challenge without using the built in method <code>Object.keys()</code>.'');'