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: