Create a Method on an Object-Please Help

Tell us what’s happening:
I’m having a lot of trouble on this code. I have tried it multiple times and keep getting nothing as a result. If anyone would help me that would be great.

Your code so far


let dog = {
  name: "Spot",
  numLegs: 4,
  sayLegs: function() {return "This dog has " + dog.numlegs + "legs.";}
};

dog.sayLegs();

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/create-a-method-on-an-object

Notice it’s numLegs not numlegs. Also There should a space between number of legs and the text “legs.”

Thank you. I noticed the capitalization as soon as I posted it, I was typing that fast because I kept resetting and trying again. The space in front of the “legs” was the problem the whole time. Thank you again.