JavaScript Quiz Practice
Active Recall Drill Session
← Exit SessionQuestion 1 of 1
easyJavaScript
What does this log?
code
function Dog() {}
Dog.prototype.sound = 'woof';
const rex = new Dog();
console.log(rex.sound);
console.log(rex.hasOwnProperty('sound'));