Home | Mailing List | Blog | Tutorial Videos

Arrow Functions

What is returned from the following console.log?

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

Select one: