This challenge will need a bit of knowledge of one of the new features in Javascript 1.8.5, this feature is Object.freeze to get the correct result.
var dog = { sound: 'Bark!' }; Object.freeze(dog); Object.prototype.talk = function () { return this.sound; }; //This method should return 'Bark!' var result = dog.talk();
assert( result === 'Bark!');