Hi, in this question I set for the friends [4] why in console show number 1 --> {name: "Sae", legs: 4, tails: 1, friends: Array(1)}

Tell us what’s happening:
Describe your issue in detail here.

Your code so far



var myDog = {
// Only change code below this line
"name": "Sae",
"legs": 4,
"tails": 1,
"friends": [4],

// 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/91.0.4472.114 Safari/537.36

Challenge: Build JavaScript Objects

Link to the challenge:

It means that friends is an array with one item in it (the number 4).

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.