Build JavaScript Objectss1

Tell us what’s happening:

Make an object that represents a dog called myDog which contains the properties "name" (a string), "legs" , "tails" and "friends" .

You can set these object properties to whatever values you want, as long as "name" is a string, "legs" and "tails" are numbers, and "friends" is an array.

Your code so far

var myDog = {
// Only change code below this line

myDog = {“name”: “Joe”, “legs”: 4, “tails”: 1,
“friends”: [“many”, “Ade”]};

// Only change code above this line

Your browser information:

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

Challenge: Build JavaScript Objects

Link to the challenge:

What’s your question. What errors do you have?

SyntaxError: unknown: Unexpected character ‘“’ (4:9)

Ah, it looks like you have smart quotes. You want regular quotes ".

I fixed it but now it says “SyntaxError: unknown: Unexpected token, expected “,” (5:27)”

Closer. Look closely at the example compared to your code. You have myDog twice. You have two sets of {} .