Question 12 of 10012%
12
What gets logged by this for...in loop?
function Animal() {}
Animal.prototype.sound = 'generic sound';
function Dog() {}
Dog.prototype = Object.create(Animal.prototype);
const rex = new Dog();
rex.name = 'Rex';
for (const key in rex) {
console.log(key);
}
12/100