let canary = new Bird("Tweety");
let ownProps = [];
// Add your code below this line
for (let property in canary) {
if (canary.hasOwnProperty(property)) {
ownProps.push(property);
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36.
You likely just copy and pasted the solution from the hints page, it is missing the constructor function. You can add the Bird constructor back at the top.
function Bird(name) {
this.name = name;
this.numLegs = 2;
}