Create a Basic JavaScript Object

Create a Basic JavaScript Object
0

#1

Not sure what’s wrong here, but the test says numlegs isn’t a number…

let dog = {
name: “Buddy”,
numlegs: 4
};


let dog = {
 name: "Buddy",
 numlegs: 4 
};

Your browser information:

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

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


#2

Buddy has curly quotes like it was copied from word or somewhere else. Retype the quotes.


#3

You need to use the correct camel case for numlegs.


#4

It was copied directly from the test editor, but will try again - Thanks.


#5

This worked- Thank you! I know it’s best practice but shouldn’t I be able to spell that anyway I wanted?


#6

Not for the tests but in real life yep. :smiley: