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