Home | Mailing List | Blog | Tutorial Videos

Arrow Functions

What gets logged in the following code?

let dog = {
    breed: "Border Collie",
    sound: "Wooh",
    getBreed: () => { 
        return this.breed;
    },
    getSound: function() {
        return this.sound;
    }
};
console.log(dog.getBreed(), dog.getSound());

Select one: