Iterate over constructor

Please check my code below, its not working.

for(let property in Dog){
if(Dog.hasOwnProperty(property)){
  ownProps.push(property);
}
else{
  prototypeProps.push(property);
}
}

Link of the challenge is given below.
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties

Dog should be beagle.

@mb1 yeah I’ve checked it worked. But why we have to iterate over constructor Dog isn’t it?