I would like to know why I get this error: dog.sayLegs() should return the given string - note that punctuation and spacing matter. // tests completed

Tell us what’s happening:

Your code so far


let dog = {
name: "Spot",
numLegs: 4,
sayLegs: function() {return "The name of this dog is:" + dog.name + ".";}
};
dog.sayLegs();

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36 Edg/88.0.705.56.

Challenge: Create a Method on an Object

Link to the challenge:

Your output does not match the required output:

Using the dog object, give it a method called sayLegs . The method should return the sentence “This dog has 4 legs.”