Understand Own Properties js

Tell us what’s happening:

… Am still not passing the test what am i doing wrong…

Your code so far


function Bird(name) {
this.name = name;
this.numLegs = 2;
}

let canary = new Bird("Tweety");
let ownProps = [];
// Only change code below this line

for (let property in Bird) {
if (Bird.hasOwnProperty(property)) {
  ownProps.push(property);
}
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0.

Challenge: Understand Own Properties

Link to the challenge:

look at the example, is it iterating on the constructor there?

…Thank i solved it …